示教机械臂
Dependencies: MQTT SDFileSystem WIZnet_Library mbed
Fork of wmx_laser_copy by
networking.h@14:350e03215b0e, 2018-08-03 (annotated)
- Committer:
- xmwmx
- Date:
- Fri Aug 03 10:06:33 2018 +0000
- Revision:
- 14:350e03215b0e
- Parent:
- 2:a50b794b8ede
??????????
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); |