[SOLVED] Get a variable´s context from the MQTT API

Is there any way of getting a variable´s context from the MQTT callback?
Im using the ESP8266 NodeMCU 1.0 MQTT library.

Thanks for reading :smiley:

Hello @sami286,

With MQTT right now we support to obtain only values, if you need to get the context you should use HTTP instead of MQTT, you can use both of them if you need too.

Regards.

Thanks for your answer, so HTTP is the only way to obtain the context? Can´t I use any of the ESP8266 libraries?

By default our NodeMCU Library doesn’t support to get context from Ubidots, but you can take a look to the getValue() function and overload it for getting the context instead of the value.

Regards.