于之前基础上增加功能:py启动后输入缩放比例,十秒内未输入,则初始化后重启py,方可按默认设置执行

Dependencies:   MQTT SDFileSystem WIZnet_Library mbed

Fork of Laser_SD_W5500 by YX ZHANG

networking.h

Committer:
zhangyx
Date:
2018-07-23
Revision:
7:4c80e598d08c
Parent:
2:a50b794b8ede

File content as of revision 7:4c80e598d08c:

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