示教机械臂

Dependencies:   MQTT SDFileSystem WIZnet_Library mbed

Fork of wmx_laser_copy by w mx

networking.h

Committer:
xmwmx
Date:
2018-08-03
Revision:
14:350e03215b0e
Parent:
2:a50b794b8ede

File content as of revision 14:350e03215b0e:

#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);