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)
  1. Server Address: xmpp.koryo.com.tw
  2. Account1's name and password (nnn40b/123456)
  3. 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

Committer:
lester0507
Date:
Tue Sep 15 01:26:54 2015 +0000
Revision:
0:464110a4a6f1
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lester0507 0:464110a4a6f1 1 /*
lester0507 0:464110a4a6f1 2 * Copyright (c) 2010 Hendrik Lipka
lester0507 0:464110a4a6f1 3 *
lester0507 0:464110a4a6f1 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
lester0507 0:464110a4a6f1 5 * of this software and associated documentation files (the "Software"), to deal
lester0507 0:464110a4a6f1 6 * in the Software without restriction, including without limitation the rights
lester0507 0:464110a4a6f1 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
lester0507 0:464110a4a6f1 8 * copies of the Software, and to permit persons to whom the Software is
lester0507 0:464110a4a6f1 9 * furnished to do so, subject to the following conditions:
lester0507 0:464110a4a6f1 10 *
lester0507 0:464110a4a6f1 11 * The above copyright notice and this permission notice shall be included in
lester0507 0:464110a4a6f1 12 * all copies or substantial portions of the Software.
lester0507 0:464110a4a6f1 13 *
lester0507 0:464110a4a6f1 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
lester0507 0:464110a4a6f1 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
lester0507 0:464110a4a6f1 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
lester0507 0:464110a4a6f1 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
lester0507 0:464110a4a6f1 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
lester0507 0:464110a4a6f1 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
lester0507 0:464110a4a6f1 20 * THE SOFTWARE.
lester0507 0:464110a4a6f1 21 */
lester0507 0:464110a4a6f1 22
lester0507 0:464110a4a6f1 23 #ifndef MSTRING_H
lester0507 0:464110a4a6f1 24 #define MSTRING_H
lester0507 0:464110a4a6f1 25
lester0507 0:464110a4a6f1 26 char *strdup (const char *str);
lester0507 0:464110a4a6f1 27
lester0507 0:464110a4a6f1 28 #endif