框架:
ESP-IDF-v4.3.1- Eclipse插件
带有一个活动组件的项目(我的计划是添加布尔扫描、mqtt消息传递和wifi访问)
IDF_PATH: C:\Users\username\source\esp-idf-v4.3.1\
IDF_TOOLS_PATH: C:\Users\username\.espressif
目标:将MQTT功能添加到ESP-IDF中的自定义组件中。
发行:
../components/mqtt/include/mqtt.h:24:10: fatal error: mqtt_client.h: No such file or direct
我正在尝试构建,并且面临着问题。我已经按照@ 提供的说明进行了操作。这是我得到的错误-
Using mosquitto source dir: /home/vagrant/Repos/mosquitto/mqtt/mosquitto
OpenSSL install dir: /usr/bin
If you changed the backend selection, you might need to 'make clean' first
CFLAGS: -I/home/vagrant/Repos/mosquitto/mqtt/mosquitto/src/
我正在学习Go,并决定重写我最初用Python编写的MQTT orchestrator。最基本的部分工作得很好:
package main
import (
"fmt"
"time"
"os"
MQTT "github.com/eclipse/paho.mqtt.golang"
log "github.com/sirupsen/logrus"
)
// definitions for a switch
type Switch struct {
topic st
我在下面的给定路径中有arm-none-linux-gnueabi,并且使用相同的编译器构建我的目标文件。 root@user-VirtualBox:/home/user/octane_etk_sample-6.0.0.240# which arm-none-linux-gnueabi-gcc
/home/user/octane_etk-6.0.0.240/arm-toolchain/bin/arm-none-linux-gnueabi-gcc
root@user-VirtualBox:/home/user/octane_etk_sample-6.0.0.240# which arm-non
我正在使用Docker容器,我在其中安装了ubuntu16.04,我尝试安装openvino工具包的安装程序,所以当我按照中给出的命令安装Paho* MQTT C客户端库时,我得到了以下错误
root@2fe5f8678637:~# cd paho.mqtt.c
root@2fe5f8678637:~/paho.mqtt.c# ls -a
. CODE_OF_CONDUCT.md .git src
.. conanfile.py .gitignore test
about.html
int mqtt_connection()
{
mqtt_broker_handle_t *broker = mqtt_connect(client_name, ip_addr, port);
if(broker == 0) {
printf("Connection failed, Please check the IP and port of broker\n");
return 0;
}
else {
printf("Connection established
RPC对MQTT的调用
嗨,我想通过向MQTT主题(${device.id}/rpc)发出发布消息(RPC调用)来发布遥测事件。
参考资料: RPC over MQTT(ttps://mongoose-os.com/docs/mongoose-os/api/rpc/rpc-mqtt.md)
我使用下面的命令在MQTT上调用RPC
mos --port mqtts://mqtt.2030.ltsapis.goog:8883/projects/PROJECT_NAME/locations/us-central1/registries/iot-registry/devices/esp8266_C