Message converter

I have set a TCP agent which now can receive HEX message. I want to resolve the HEX message. So I want to set a rule or a converter to write an attribute when receive the HEX message.

import org.openremote.manager.rules.RulesBuilder
import org.openremote.model.query.AssetQuery

RulesBuilder rules = binding.rules 
        .name("resolve tcp message")
            {facts ->
                new AssetQuery()
            {facts ->
            facts.updateAssetState("43xfL5YPL7FCuy0nJZijj9", "message", "Conectado111");

the rule seems not what I want. I also can not get the HEX message the sensor send to me. Any ideas?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.