问题标签 [sming]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
226 浏览

wifi - 在 SMING 框架应用程序上调用 ESP8266 SDK API 函数

我正在使用 ESP8266 WiFi 芯片和 SMING 框架。

我想在使用 SMING 框架的应用程序中调用 SDK API 函数。

假设我想调用wifi_station_set_reconnect_policy(true). 如何在 SMING application.cpp 中执行此操作?

0 投票
1 回答
181 浏览

esp8266 - ESP8266 SMING 示例中的命令未正确解析

我已经使用 SMING 框架的 Telnet_TCPServer_TCPClient 示例设置了 UART 以使用 CommandProcessing 库接收和处理命令。

以下是相关代码;

当我将此字符串发送appheap ,off到 UART 时,该命令被正确解析。

但是,当我将此字符串发送appheap,off到 UART 时,该命令未正确解析。返回的消息是Command not found, cmd = 'appheap,off'

如果一切顺利,两个字符串appheap ,offappheap,off应该可以正常工作。

0 投票
1 回答
331 浏览

mqtt - Make MQTT client connection to be always present

I am using ESP8266 chip and the SMING software framework MqttClient_Hello example.

I want the MQTT connection to always be present at all time. If for whatever reason the connection is broken, I would like a reconnection to take place. How can this be done?

The relevant code in MqttClient_Hello;

What needs to be changed in the code to ensure constant connection?

0 投票
1 回答
986 浏览

esp8266 - 通过软件重置 ESP8266

我希望 ESP8266 WiFi 模块在通过 UART 接收到命令后自行重置。可以使用哪个代码来做到这一点?是否有像 reset() 这样的 SDK 函数?

我正在使用 SMING 框架

0 投票
1 回答
319 浏览

tcp - Stop TCP server in ESP8266

I am using ESP8266 WiFi module with the SMING framework. I would like to stop a TCP server. This is how I started the TCP server;

What is the code to stop it?

0 投票
1 回答
267 浏览

tcp - Difference between ESP8266 SMING TCP sendString() and writeString()

I am using ESP8266 with the SMING framework.

I found this sample code in the Telnet_TCPServer_TCPClient example.

What is the difference between sendString() and writeString() in this sample code? It seems like there is no difference. The outcome is to send string data over to the other TCP party.

0 投票
1 回答
729 浏览

c++ - 将 char* 转换为字符串

我正在使用带有使用 C++ 的 SMING 框架的 ESP8266 Wifi 芯片。我有一个 tcpServer 函数,它从 TCP 端口接收数据。我想将传入的数据转换char *data为字符串数据类型。这就是我所做的。

内容rx_data很垃圾。代码有什么问题?如何制作rx_data成合适的字符串?

0 投票
0 回答
163 浏览

wifi - 无法使用 ESP8266 启用接入点

我正在使用带有 SMING 版本 2.1 的 ESP8266

要启用接入点,我有以下代码init()

上面的代码工作正常。但是,当我在 init() 之外运行代码时,ESP8266 不会成为 AP。

不知道这是一个 SMING 错误还是只是我的错。有没有其他人遇到过同样的问题?

0 投票
1 回答
570 浏览

c++ - 从 ESP8266 的 SPIFFS 中存储的变量设置全局对象

这就是我过去设置这个全局对象的方式。

我想检索存储在 spiffs 中的 IP 地址并用它来声明这个全局对象。

AppSettings 包含 spiff 的结构。

这是我的 init(),

问题是在声明目标代码期间,尚未加载 AppSettings。我应该如何声明全局对象,以便它能够从 AppSettings 中检索值?

我在 ESP8266 上使用 SMING 框架。

0 投票
1 回答
2693 浏览

uart - ESP8266 UART 接收缓冲区的最大大小

我正在使用 SMING 框架。ESP8266 UART 一次可以接收的最大尺寸是多少?如果我要向 ESP UART 传输一串 X 字节,X 的最大大小是多少?