Laser_SD_W5500
Dependencies: MQTT SDFileSystem WIZnet_Library mbed
Fork of EthW5500 by
networking.h@6:4c80e598d08c, 2018-07-23 (annotated)
- Committer:
- zhangyx
- Date:
- Mon Jul 23 06:28:17 2018 +0000
- Revision:
- 6:4c80e598d08c
- Parent:
- 2:a50b794b8ede
save to file;
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); |