Ubidots Community


Hi everyone,
I am trying to send CONTEXT_KEY over UDP. This is my message example ($OA_medium=WATER 100%)
b’ESP32-GPY/1.0|POST|token|UniBox_807d3a949928=>OA_oil_level:0,OA_warn_80pct:0,OA_warn_90pct:0,OA_warn_100pct:0,OA_err_sensor:0,OA_err_disconnected:0,$OA_medium=WATER 100%|end’
In Ubidots, I can see context data in wrong form

Thank you in advance for your assistance.
Regards, Vojtech

Good day @nadvorvo,

I hope all is well, thank you for sharing this case with the community.

You need to remove the comma before the ‘$’ symbol to indicate correctly the context of the value, as follows:

ESP32-GPY/1.0|POST|TOKEN|UniBox_807d3a949928=>OA_oil_level:0,OA_warn_80pct:0,OA_warn_90pct:0,OA_warn_100pct:0,OA_err_sensor:0,OA_err_disconnected:0$OA_medium=WATER 100%|end

Please refer to the article below to learn more on how to send data to Ubidots over UDP.


Hi @isalogi,
Thank you for your reply. I have corrected my UDP message.
b'ESP32-GPY/1.0|POST|token|UniBox_840d8e121f1c=>OA_oil_level: 0,OA_warn_80pct: 0,OA_warn_90pct: 0,OA_warn_100pct: 0,OA_err_sensor: 0,OA_err_disconnected: 0$OA_medium= "WATER 100%"|end'

It seems context delivered to UbiDots correctly:

I would like to show context value (medium detected) in the dashboard.
Could you help me, please, which widget is suitable for this.

Thank you in advance for your assistance.
Regards, Vojtech

Hi @nadvorvo,

Thank you for the confirmation. Nonetheless, I noticed some extra symbols in the context, there is no need to include the double-quotes. Ubidots will take by default the context as shown in the following image.

Now, to display the context in the Dashboard you can use the variable table, values table, or the metric widget. Below you can find the guide to how to create them and add the context of a variable.

Please let me know if I can be of additional help.


1 Like