Laser_SD_W5500
Dependencies: MQTT SDFileSystem WIZnet_Library mbed
Fork of EthW5500 by
networking.h@2:a50b794b8ede, 2018-06-04 (annotated)
- Committer:
- zhangyx
- Date:
- Mon Jun 04 15:16:05 2018 +0000
- Revision:
- 2:a50b794b8ede
better API
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
zhangyx | 2:a50b794b8ede | 1 | #pragma once |
zhangyx | 2:a50b794b8ede | 2 | |
zhangyx | 2:a50b794b8ede | 3 | #include "MQTTSocket.h" |
zhangyx | 2:a50b794b8ede | 4 | #include "MQTTClient.h" |
zhangyx | 2:a50b794b8ede | 5 | |
zhangyx | 2:a50b794b8ede | 6 | typedef MQTT::Client<MQTTSocket,Countdown> MClient; |
zhangyx | 2:a50b794b8ede | 7 | typedef void (*recv_ctl_cb)(const char*, const char*); |
zhangyx | 2:a50b794b8ede | 8 | |
zhangyx | 2:a50b794b8ede | 9 | int networking_init(MQTTSocket &sock, MClient &client, const char *broker,const char* sensors[][2], const char* actuators[][2], recv_ctl_cb cb); |
zhangyx | 2:a50b794b8ede | 10 | void publish_value(MClient &client, const char *topic, const char *buf); |