arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.04k stars 4.78k forks source link

Fixed HexToBytes function. Added Publish3 command to send binary data via MQTT. #21329

Closed mbezuidenhout closed 5 months ago

mbezuidenhout commented 5 months ago

Description:

Add ability to the Publish command to send a hexstring as binary MQTT data.

Publish command now has the following options

Publish3 | = MQTT publish any topic and optional binary payload. For example the payload 7461736D6F7461 will output tasmota or the value ff will output the integer value 255

Checklist:

Jason2866 commented 5 months ago

A niche function which needs resources in every build, not a fan of.

s-hadinger commented 5 months ago

We could consider excluding this feature in SAFEBOOT as it shouldn't be useful there

Jason2866 commented 5 months ago

We could consider excluding this feature in SAFEBOOT as it shouldn't be useful there

Fine when doing this way.