Connect through Wifi to IBM MQTT cloud

Dependencies:   MQTT NetworkSocketAPI X_NUCLEO_IDW01M1v2 X_NUCLEO_IKS01A1 mbed NDefLib X_NUCLEO_NFC01A1

Fork of IDW01M1_Cloud_IBM by ST Expansion SW Team

To start the demo the following expansion boards are required


After having mounted the board stack on the Nucleo board the below steps should be followed:

  • Program in the application source code you local WiFi SSID and password and flash the binary. Make sure the Wifi network has visible SSID.
  • Reset the Nucleo board and after few seconds the Nucleo green led will be on (it means the Nucleo is connected to the local Wifi and to the IBM cloud server)
  • Read the NFC tag with an Android device and the browser will be automatically opened and directed to the specific brocker IBM demo page where the environmental values are displayed in form of a x-y graph. The values are updated every few seconds. On the Hyperterminal is possible to see the values sent to the IBM cloud server and the board mac address to be entered on the IBM quickstart web page if a manual connection is needed (eg. to connect from a PC browser).

Revisions of main.cpp

Revision Date Message Actions
24:a59eb8bdc431 2016-11-24 Updated libraries File  Diff  Annotate
23:43f9e34781f2 2016-10-26 Added NFC expansion board and brocker subscription support File  Diff  Annotate
22:d278e4bb5ded 2016-10-19 minor fix File  Diff  Annotate
21:78fac4c1b0fa 2016-10-19 fixed "publish" string syntax, changed type name to iotsample-mbed-Nucleo File  Diff  Annotate
20:517b559ce91d 2016-10-17 Updated libraries. File  Diff  Annotate
18:2c229fa282fa 2016-10-04 Minor changes File  Diff  Annotate
17:83d0cd810ed3 2016-10-04 Added connectivity to and to File  Diff  Annotate
16:233b89a6b72f 2016-09-28 Code cleanup File  Diff  Annotate
14:641560b57584 2016-09-28 Added Wifi support and read environmental sensors from IKS File  Diff  Annotate
13:0b31131bf711 2016-09-07 Added MQTT for Cloud IBM by WiFi File  Diff  Annotate
11:70df7089e2da 2016-05-25 updating x_nucleo_idw01m1 and networksocketAPI File  Diff  Annotate
10:c7b62ce013ad 2016-05-14 Adding header to main. File  Diff  Annotate
8:6df01cb43137 2016-05-13 changes to app and removing libs. File  Diff  Annotate
6:0d838d564181 2016-04-19 removing init() from main File  Diff  Annotate
5:e913a401b174 2016-04-19 main initializes SpwfInterface File  Diff  Annotate
4:1ed7f173eec5 2016-04-14 main for socket conn to File  Diff  Annotate
3:dfb8c6c8c31b 2016-04-14 change in main File  Diff  Annotate
2:ba0531d896f0 2016-04-13 file-name changes. wifi-wakeup() delay. Socket.recv() returns bytes_read on time_out, even if bytes_read is 0. File  Diff  Annotate
1:041e9f05738c 2016-04-12 Optimization changes and other misc. File  Diff  Annotate
0:cbf8bc43bc9e 2016-04-08 changes for optimization in Keil compiler File  Diff  Annotate