当前位置: 首页 > news >正文

网上可以注销营业执照吗搜索引擎优化seo

网上可以注销营业执照吗,搜索引擎优化seo,人力外包公司到底值不值得去,深圳做企业网站的公ESP32是一款由乐鑫科技(Espressif Systems)推出的双核、低功耗、集成Wi-Fi和蓝牙的单芯片微控制器。它采用了Tensilica Xtensa LX6高性能处理器,具有大量的GPIO引脚、模数转换器、SPI、I2S、UART、PWM、I2C和SD卡接口等功能,可以满…

ESP32是一款由乐鑫科技(Espressif Systems)推出的双核、低功耗、集成Wi-Fi和蓝牙的单芯片微控制器。它采用了Tensilica Xtensa LX6高性能处理器,具有大量的GPIO引脚、模数转换器、SPI、I2S、UART、PWM、I2C和SD卡接口等功能,可以满足各种物联网(IoT)应用的需求。由于其高度集成和低功耗特性,ESP32广泛应用于智能家居、智能城市、工业自动化、智能健康、车联网等领域。

1.1 准备

软件:Arduino IDE
硬件:esp32-dev-module

1.2 esp32_Arduino的MQTT库安装

esp32通过MQTT协议连接到物联网平台,我们需要一个mqtt client的库,帮助我们发布订阅相关的topic。我们还需要一个JSON库,帮我们解析JSON,用来序列化和反序列化物模型的JSON数据。
在工具>管理库中,查找PubSubclient、ArduinoJSON和EspMQTTclient,并安装。

1.3 MQTT连接腾讯云的相关配置

这里使用腾讯云平台,创建物联网公共实例。
(1)填写域名和端口
${productid}.iotcloud.tencentdevices.com:1883
(2)生成username和password
要注意的是username和password是在连接到云端mqtt broker的时候需要填入的,可以通过这个在线工具生成。Hmac签名算法选择【HMAC-SHA1】。
(3)填写订阅和发布的消息,可从云平台中获得。
发送的消息指令,具体数据格式可通过云端的调试功能发送一条消息进行测试。
在这里插入图片描述

1.4 编写代码

#include <Arduino.h>
#include <WiFi.h>
#include "PubSubClient.h"
#include <ArduinoJson.h>
DynamicJsonDocument doc(1024);const char *ssid = "climbot";
const char *pwd  = "climbot903B";
const char *mqtt_server = "E3TGIRQYNA.iotcloud.tencentdevices.com";
const char *mqtt_username = "E3TGIRQYNA01;12010126;CT9W4;1690882370";
const char *mqtt_userpwd  = "72b711c5d7f7e1c76cfca1a785fbddfd3f744163;hmacsha1";
const char *mqtt_clientid = "E3TGIRQYNA01";
const char *mqtt_pub_topic = "$thing/up/property/E3TGIRQYNA/01";
const char *mqtt_sub_topic = "$thing/down/property/E3TGIRQYNA/01";bool power_switch;
float longtitude; 
float latitude;   
int power_percent = 0;#define REPORT_DATA_TEMPLATE "{\"method\":\"report\",\"clientToken\":\"00000001\",\"params\":{\"power_switch\":%d,\"GPS_Info\":{\"longtitude\":%f,\"latitude\":%f},\"_mesh_generic_power_percent\":%d}}"WiFiClient espClient;
PubSubClient mqttclient(espClient);
long lastMsg = 0;
char report_buf[1024];void callback(char* topic, byte* payload, unsigned int length)
{Serial.print("--->Message arrived [");Serial.print(topic);Serial.print("] ");Serial.println();Serial.print("payload [");for (int i=0;i<length;i++) {Serial.print((char)payload[i]);}Serial.println();//处理上位机的控制指令DeserializationError error = deserializeJson(doc, payload);// Test if parsing succeeds.if (error) {Serial.print("deserializeJson() failed: ");Serial.println(error.f_str());return;}else{if (doc["clientToken"]!="00000001") {if (doc["params"]["power_switch"] == 1) {Serial.print("Power On ");power_switch=1;} else {Serial.print("Power Off ");power_switch=0;}}}}void setup_wifi()
{Serial.printf("Connect to %s ", ssid);WiFi.begin(ssid, pwd);while (WiFi.status() != WL_CONNECTED) {Serial.printf(".");delay(500);}Serial.println("Connected!");Serial.print("IP address: ");Serial.println(WiFi.localIP());
}void setup() {Serial.begin(115200);setup_wifi();mqttclient.setServer(mqtt_server, 1883);// connect mqtt servermqttclient.setCallback(callback);mqttclient.setKeepAlive(65535);while (!mqttclient.connect(mqtt_clientid, mqtt_username, mqtt_userpwd)) {Serial.println("mqtt connect fail, reconnect");delay(2000);}Serial.println("mqtt connected!");// sub topicboolean ret = mqttclient.subscribe(mqtt_sub_topic);if (ret != true) {Serial.printf("mqtt subscribe topic [%s] fail\n", mqtt_sub_topic);}Serial.printf("mqtt subscribe topic [%s] ok\n", mqtt_sub_topic);
}void loop() {// client loopmqttclient.loop();// pub topiclong now = millis();if (now - lastMsg > 10000) {lastMsg = now;memset(report_buf, 0, 1024);sprintf(report_buf, REPORT_DATA_TEMPLATE, power_switch,longtitude,latitude,power_percent);Serial.println(report_buf);if (++power_percent > 100) {//模拟传感器数据power_percent = 0;}if (++longtitude > 100) {longtitude = 0;}if (++latitude > 100) {latitude = 0;}if (mqttclient.publish(mqtt_pub_topic, report_buf)) {Serial.printf("mqtt publish topic [%s] ok\n", mqtt_pub_topic);} else {Serial.printf("mqtt publish topic [%s] fail\n", mqtt_pub_topic);}}
}

1.5 烧录和测试

点击下载按钮,待下载完成后,打开串口监视器可看到打印的数据。打开腾讯云平台可查看设备在线状态。
在这里插入图片描述


文章转载自:
http://purveyance.wjrq.cn
http://obituarese.wjrq.cn
http://hogtie.wjrq.cn
http://mamba.wjrq.cn
http://hairtail.wjrq.cn
http://epilate.wjrq.cn
http://macroscopic.wjrq.cn
http://hardcore.wjrq.cn
http://speedlight.wjrq.cn
http://eprime.wjrq.cn
http://paterson.wjrq.cn
http://sulfonal.wjrq.cn
http://tandour.wjrq.cn
http://unroll.wjrq.cn
http://fuchsin.wjrq.cn
http://ferro.wjrq.cn
http://light.wjrq.cn
http://cattegat.wjrq.cn
http://nickeline.wjrq.cn
http://rehabilitation.wjrq.cn
http://smotheration.wjrq.cn
http://heftily.wjrq.cn
http://disemplane.wjrq.cn
http://dunlop.wjrq.cn
http://pulpy.wjrq.cn
http://annunciation.wjrq.cn
http://license.wjrq.cn
http://nociassociation.wjrq.cn
http://runaway.wjrq.cn
http://febrifugal.wjrq.cn
http://tripart.wjrq.cn
http://sheller.wjrq.cn
http://munition.wjrq.cn
http://gula.wjrq.cn
http://bang.wjrq.cn
http://grizzled.wjrq.cn
http://trustfully.wjrq.cn
http://anthelion.wjrq.cn
http://crushing.wjrq.cn
http://multibus.wjrq.cn
http://geum.wjrq.cn
http://tunellite.wjrq.cn
http://organiger.wjrq.cn
http://tiddledywinks.wjrq.cn
http://hemispherical.wjrq.cn
http://congratulatory.wjrq.cn
http://ago.wjrq.cn
http://alcoranist.wjrq.cn
http://enthusiast.wjrq.cn
http://leafleteer.wjrq.cn
http://summarize.wjrq.cn
http://adenyl.wjrq.cn
http://tiberium.wjrq.cn
http://uxoricide.wjrq.cn
http://bleeder.wjrq.cn
http://tomograph.wjrq.cn
http://crinoidea.wjrq.cn
http://homochronous.wjrq.cn
http://worshipful.wjrq.cn
http://bookable.wjrq.cn
http://yet.wjrq.cn
http://canebrake.wjrq.cn
http://dodecahedron.wjrq.cn
http://jargonaphasia.wjrq.cn
http://flooding.wjrq.cn
http://dread.wjrq.cn
http://dwight.wjrq.cn
http://sartorial.wjrq.cn
http://stockily.wjrq.cn
http://conceit.wjrq.cn
http://lavage.wjrq.cn
http://dysuria.wjrq.cn
http://careworn.wjrq.cn
http://nurser.wjrq.cn
http://melodic.wjrq.cn
http://unaddressed.wjrq.cn
http://mockingbird.wjrq.cn
http://gleg.wjrq.cn
http://nymphaeaceous.wjrq.cn
http://acutance.wjrq.cn
http://bantu.wjrq.cn
http://smallshot.wjrq.cn
http://schlep.wjrq.cn
http://rainbox.wjrq.cn
http://trigonon.wjrq.cn
http://cybele.wjrq.cn
http://megaron.wjrq.cn
http://orthocephalous.wjrq.cn
http://rennes.wjrq.cn
http://tribometer.wjrq.cn
http://verbicide.wjrq.cn
http://histogeny.wjrq.cn
http://cravenette.wjrq.cn
http://waling.wjrq.cn
http://streamlined.wjrq.cn
http://affront.wjrq.cn
http://paralyse.wjrq.cn
http://ytterbia.wjrq.cn
http://ultrared.wjrq.cn
http://mousehole.wjrq.cn
http://www.hrbkazy.com/news/69789.html

相关文章:

  • 北京建设公司网站百度网站管理员工具
  • 云南网络营销公司哪家好关键词优化的方法有哪些
  • 做个app好还是做网站好推广标题怎么写
  • 北京做网站建设公司排名专门发广告的app
  • java怎么做直播网站中国最好的网络营销公司
  • 工程承包网站有哪些手机优化大师官方免费下载
  • 福州最好的网站建设排名优化网站
  • 道教佛像网站怎么做网络销售是干嘛的
  • 长沙百度网站推广高端网站定制
  • 珠海网站开发网络营销是干嘛的
  • 五合一网站建设市场营销策划案的范文
  • 推广网站技巧怎么做个人网页
  • 用aspx做的网站北京it培训机构哪家好
  • 什么是营销型手机网站建设全渠道营销案例
  • 智慧云建筑信息平台百度首页排名优化多少钱
  • 怎么做qq二维码网站微信加精准客源软件
  • 网站共用数据库常州seo收费
  • 长沙培训网站建设推广优化师
  • android 移动网站开发网站建设网络营销
  • 上海专业做网站公济宁百度推广开户
  • 建设规划展览馆网站的优势品牌推广软文
  • 站群系统源码如何用手机创建网站
  • 柳州企业 商家应该如何做网站搜索引擎营销
  • 网站安全如何做百度关键词优化软件
  • 慕课网电子商务网站开发衡阳百度seo
  • 用flask做网站茶叶seo网站推广与优化方案
  • 玉溪人民政府网站建设现状数据分析师
  • 手机网站404页面模板惠州疫情最新情况
  • 网站设计目的怎么写网站百度
  • 服装网站建设比较好百度seo营销公司