-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
测试 #8
Comments
我尝试在ESP8266上用pubsubclient pubsubclient连接SIoT测试代码如下: `#include <ESP8266WiFi.h> const char* ssid = "mywifi";//WIFI名字 WiFiClient espClient; //灯光函数及引脚定义 void setup_wifi() { WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { Serial.println(""); void callback(char* topic, byte* payload, unsigned int length) { // Switch on the LED if an 1 was received as first character }else if ((char)payload[0] == '1') { } void reconnect() {
} void setup() { Serial.begin(115200); } //打开灯泡 digitalWrite(B_led,LOW); ` |
我可以确定的是,SIoT没有问题,ESP8266也是能够正常连SIoT的,因为df的obloq模块就是基于ESP8266。因为我手头没有8266模块,也没办法来帮助你。 |
在这里提问
The text was updated successfully, but these errors were encountered: