Paho MQTT Client example with W7500

Dependencies:   DHT MQTTforLecture WIZnetInterface mbed-src

Fork of w7500-paho-mqtt by Bohyun Bang

Code

WIZwiki W7500 with paho mqtt client.

Import programw7500-paho-mqtt

Paho MQTT Client example with W7500

You have to change

You have to use your ethernet(network) information.

MQTTEthernet.h

    uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x00, 0x00, 0x00}; // your mac address
    const char * ip_addr = "???.???.???.???"; // your ip
    const char * gw_addr = "???.???.???.???"; // your gateway
    const char * snmask = "???.???.???.???"; // your subnetmask

And you have to use your mqtt broker server information. Broker server ip address and port number listed bleow are available now. But I will close the mqtt broker server on July 15,2015.

main.cpp

    char* hostname = "104.199.146.45";
    int port = 1883;

Platform

WIZwiki W7500 [ https://developer.mbed.org/platforms/WIZwiki-W7500/ ] /media/uploads/bangbh/wizwiki-w7500.jpg

Component

YWRobot Easy module shield [ where to buy ] (This is not mbed component) /media/uploads/bangbh/ywrobot_esay-module-shield-v1.jpg

Test software

PC

MQTT-FX - A JavaFX based MQTT Client [ Home page ] /media/uploads/bangbh/mqtt-fx.png

Mobile(iPhone)

ZMQTT-UTILITY - MQTT Test utility|You can download from App store(iPhone). /media/uploads/bangbh/iphone-zmqtt-utility.png

History

for lecture default tip

2015-09-21, by bangbh [Mon, 21 Sep 2015 23:39:16 +0000] rev 15

for lecture


lecture

2015-09-20, by bangbh [Sun, 20 Sep 2015 06:11:10 +0000] rev 14

lecture


This is for Wiznet Academy lecture.

2015-09-20, by bangbh [Sun, 20 Sep 2015 05:17:13 +0000] rev 13

This is for Wiznet Academy lecture.


Nothing changed.

2015-06-29, by bangbh [Mon, 29 Jun 2015 02:10:24 +0000] rev 12

Nothing changed.


No Change.

2015-06-29, by bangbh [Mon, 29 Jun 2015 01:55:45 +0000] rev 11

No Change.


No change

2015-06-29, by bangbh [Mon, 29 Jun 2015 01:53:42 +0000] rev 10

No change


Paho MQTT Client with W7500.

2015-06-28, by bangbh [Sun, 28 Jun 2015 22:48:46 +0000] rev 9

Paho MQTT Client with W7500.


TCPEchoServer example for WIZwiki-W7500

2015-06-23, by justinkim [Tue, 23 Jun 2015 00:36:34 +0000] rev 8

TCPEchoServer example for WIZwiki-W7500


updated example code to be more verbose

2015-05-04, by mbedAustin [Mon, 04 May 2015 22:47:02 +0000] rev 7

updated example code to be more verbose


Point to the latest libraries

2013-06-04, by emilmont [Tue, 04 Jun 2013 16:07:06 +0100] rev 6

Point to the latest libraries