Borrar filtros
Borrar filtros

MQTT publish plain hex

1 visualización (últimos 30 días)
Dimitrios Pritsios
Dimitrios Pritsios el 31 de En. de 2020
Editada: Shubham el 1 de Sept. de 2023
Is it possible to publish to a channel field with raw data?. Say for example after my sensors data are proccessed with aes encryption, Published data looks like:
0x23,0x10,0x01,0xef,0xfa,0x34,0x67,0x04,0x89,0xe3,0xa7,0xcc,0x20,0x07,0xdd,0xef

Respuestas (1)

Shubham
Shubham el 1 de Sept. de 2023
Editada: Shubham el 1 de Sept. de 2023
Hi,
The write() function expects a string as input, so it is not possible to directly pass the raw data as a binary string. In such cases, it becomes necessary to convert the raw data into a string representation before publishing it to the channel field.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by