Hi guys,
I have created a Mongoose App which reads a sensor over ESP32 Serial port 2 (GPIO16 and 17) and publish sensor data on a MQTT Broker.
Now I would Like to activate RPC over UART to receive RPC json commands (MQTT.Pub) from an ATMEGA328 over ESP32 Serial port 1 (GPIOs 32 and 34) and publish to the same MQTT broker.
I tried to include CCM (cloud communication module) on my Mongoose App without success.
I will appreciate any directions about how can I do this.
Below my config schema and libs:
config_schema:
-
[“wifi.sta.enable”, true]
-
[“wifi.sta.ssid”, “********”]
-
[“wifi.sta.pass”, “********”]
-
[“dash.enable”, true]
-
[“dash.token”, “**************************”]
-
[“mqtt.server”, “192.168.10.200:1883”]
-
[“mqtt.enable”, true]
-
[“rpc”, “o”, {title: “RPC settings”}]
-
[“rpc.enable”, “b”, true, {title: “Enable RPC”}]
-
[“rpc.uart”, “o”, {title: “RPC-over-UART settings”}]
-
[“rpc.uart.uart_no”, “i”, 0, {title: “UART number (-1 to disable)”}]
-
[“rpc.uart.baud_rate”, “i”, 115200, {title: “Baud rate”}]
-
[“rpc.uart.tx_pin”, “i”, 32, {title: “Tx Pin”}]
-
[“rpc.uart.rx_pin”, “i”, 34, {title: “Rx Pin”}]
-
[“rpc.uart.cts_pin”, “i”, -1, {title: “CTS Pin”}]
-
[“rpc.uart.rts_pin”, “i”, -1, {title: “RTS Pin”}]
-
[“rpc.uart.fc_type”, “i”, 0, {title: “Flow control: 0 - none, 1 - CTS/RTS, 2 - XON/XOFF”}]
-
[“rpc.uart.dst”, “s”, “”, {title: “Destination reachable via this channel”}]
libs:
- origin: https://github.com/mongoose-os-libs/boards
- origin: https://github.com/mongoose-os-libs/demo-bundle
- origin: https://github.com/mongoose-os-libs/ca-bundle
- origin: https://github.com/mongoose-os-libs/i2c
- origin: https://github.com/mongoose-os-libs/rpc-service-config
- origin: https://github.com/mongoose-os-libs/rpc-service-fs
- origin: https://github.com/mongoose-os-libs/rpc-common
- origin: https://github.com/mongoose-os-libs/wifi
- origin: https://github.com/mongoose-os-libs/spi
- origin: https://gitlab.com/agamigo/mgos/nanopb
- origin: https://github.com/mongoose-os-libs/rpc-service-wifi
- origin: https://github.com/mongoose-os-libs/mongoose
Thank You
Regards
José Luiz