NNN40 XmppClient first commit
Dependencies: WIFI_API_32kRAM mbed
How to use Demo code
- Step1: Create Accounts, the accounts information as follow, (Demo server used Openfire3.9.3)
- Server Address: xmpp.koryo.com.tw
- Account1's name and password (nnn40b/123456)
- Account2's name and password (app2/123456)
- Step2: Burn demo code to NNN40 module.
You can drag and drop the sample code to NNN40 module.
- Step3: Login XMPP client by mobile or PC side.
Our demonstration is presented in Android phone, and we install ”Xabber” application for XMPP client login. We use “app2” account to login “xmpp.koryo.com.tw” server.
- Step4: Login XMPP client by NNN40 module.
After turning on NNN40 module, the module will login to XMPP automatically. In addition, the module also sends a message to name2.
- Step5: Turn on or turn off LED
you can chat with module and ask module to turn on or turn off LED.
How to install Openfire (XMPP Server)
If you want setup XMPP server by yourself, the Installation Guide as follow:
https://www.igniterealtime.org/builds/openfire/docs/latest/documentation/install-guide.html
the download link as follow (Openfire3.9.3):
http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openfire_3_9_3.exe
DEMO video
MXmppClient/base64codec.h@4:b419c498752b, 2015-10-13 (annotated)
- Committer:
- lester0507
- Date:
- Tue Oct 13 06:39:55 2015 +0000
- Revision:
- 4:b419c498752b
- Parent:
- 0:464110a4a6f1
update SSID and Password
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lester0507 | 0:464110a4a6f1 | 1 | #ifndef BASE64CODEC_H |
lester0507 | 0:464110a4a6f1 | 2 | #define BASE64CODEC_H |
lester0507 | 0:464110a4a6f1 | 3 | #include <string.h> |
lester0507 | 0:464110a4a6f1 | 4 | |
lester0507 | 0:464110a4a6f1 | 5 | int base64_encode(unsigned char *source,size_t sourcelen, char *target, size_t targetlen); |
lester0507 | 0:464110a4a6f1 | 6 | |
lester0507 | 0:464110a4a6f1 | 7 | #endif // BASE64CODEC_H |