You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to be common practice (I have other examples than the original Google Core IOT) to send multiple IOT numeric payload fields combined into a single base64-encoded string (presumably for OTA efficiency). It would be useful to have methods to decode a base64 string, and then split the resulting (HEX) into multiple (InfluxDB-friendly) fields.
Specific example: "{"applicationID":"1","applicationName":"AppSensors","devEUI":"393032357a377e05","deviceName":"dev-393032357a377e05","timestamp":1574109564,"fCnt":45,"fPort":2,"data":"VQP0DQwCiv7Qf28M5kkAqg==","data_encode":"base64"}"
Here the "data" key is a base64-encoded string, containg a number of fields.
However, after decoding, the resultant HEX string needs to then be split into a number of fields (on byte boundaries), that must then be converted to InfluxDB-friendly format. I'm not sure that there is a plug-in to accomplish this either.
Feature Request
Add a base64 (or configurable) decoder processor
Proposal:
Add to strings (not likely the correct place) a decoder, to decode a field.
Example config:
Desired behavior:
Decode a field so further processing can be done on it.
Use case:
Google IOT sends a data field base64 encoded, it would be nice to be able to pull this data out and store it.
The text was updated successfully, but these errors were encountered: