Hey,
first of all thank you for making TasmotaSlave.
I succesfully have changed TasmotaSlave for my C project on an nrf52840.
I can now autoconnect (via the code on nrf) and then control BLE-devices with the tasmota console and SlaveSend x.
My goal is now to make an autoconfiguration json for homeassistant everytime the chip connects to a known ble device to control the ble-devices via mqtt. I am able to generate and send the json with SendCommand . But after that I need something that forwards recieved mqtt payloads to the uart/ tasmota slave.
Could you add a feature that does that? I think it would be the same as SlaveSend but you forward the recieved mqtt payloads. Something like a CMND_SLAVE_SEND_MQTT in the ProcessCommand.
For example:
MQTT-Client sends
to topic: tasmota_esp/cmnd/mqtt or tasmota_esp/cmnd/slave
payload: ble_device/cmnd/led ON
Tasmota forwards to Slave: ble_device/cmnd/led ON
Maybe a problem with the second space.
But I also could use a payload like: ble_device/cmnd/led_ON,
send it via uart and then split the string at _ on the TasmotaSlave.
Is this easy/possible to implement as I am not into the code of Tasmota and just used your library.
Would be very helpful. Thank you for your response.