arduinouno组装无人机_新人一枚,用arduino uno加ESP8266连入OneNet平台

这篇博客介绍了如何将Arduino Uno与ESP8266模块结合,实现通过Arduino编程发送数据到OneNet云平台。博主分享了具体的代码实现,包括WiFi连接、数据发送和接收的步骤,帮助新手理解物联网设备的数据交互过程。
摘要由CSDN通过智能技术生成

附上自己的代码

#include

#include

#include

#define LED 13

#define DevicesID 7067020

char APPkey[] = "wiwZuvj********DmSRRU=";  //在这里填写自己的APPKEY

char ssid[] = "xy";

char pass[] = "wifi1234567";

char Host[] = "api.heclouds.com";

int hostIP = 80;

WiFiClient client;

int status = WL_IDLE_STATUS;

void setup()

{

/* add setup code here */

Serial.begin(115200);

while(!Serial)

{

;

}

if (WiFi.status() == WL_NO_SHIELD)

{

Serial.println("WiFi shield not present");

while(true);

}

String fv = WiFi.firmwareVersion();

if (fv != "1.1.0")

{

Serial.println("Please update the fireware");

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值