Arduino-XMPP is a simple write only XMPP client for the Arduino platform.
Arduino-XMPP depends on Arduino-Base64 (https://github.com/adamvr/arduino-base64). This should be included before XMPPClient.h or added to your main library directory.
Basic operation is as follows:
- Create an XMPPClient instance specifying your XMPP server IP address and port.
- Call connect on the XMPPClient interface, specifying your username, the server's host name, the resource name you wish to bind to and the your password.
- If connect returns 1, you're good to go on.
- Register your presence as available by calling sendPresence.
- Send messages using sendMessage.
- Close the connection and XMPP stream using close.
This client library is somewhat restricted in what in can do. The major restrictions are as follows:
- SASL-PLAIN authentication only
- No SSL/TLS encryption on the stream
- No ability to receive and interpret incoming messages
While the first one is on the two do list in some capacity, the first two are likely to never be rectified, due primarily to the SRAM restrictions of the Arduino
- Add some semblance of being able to receive messages
- Simplify the dependency on Base64, put base64 directly in the Arduino-XMPP directory, perhaps.
- Add the ability to connect using a complete jid, rather than the parts of one
- Add the ability to send presence messages that aren't just 'I'm here'