示教机械臂

Dependencies:   MQTT SDFileSystem WIZnet_Library mbed

Fork of wmx_laser_copy by w mx

Revision:
2:a50b794b8ede
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/networking.h	Mon Jun 04 15:16:05 2018 +0000
@@ -0,0 +1,10 @@
+#pragma once
+
+#include "MQTTSocket.h"
+#include "MQTTClient.h"
+
+typedef MQTT::Client<MQTTSocket,Countdown> MClient;
+typedef void (*recv_ctl_cb)(const char*, const char*);
+
+int networking_init(MQTTSocket &sock, MClient &client, const char *broker,const char* sensors[][2], const char* actuators[][2], recv_ctl_cb cb);
+void publish_value(MClient &client, const char *topic, const char *buf);