You are viewing an old version of this page. View the current version.
        
        
            Compare with Current
                        View Page History
        
        
            
            
                                     Version 1
                            
                            Next »
            
        
     
            
                                            
        
                           
        You can write back on a generic MQTT topic from a custom namespace tag as long as the Edge device sending the generic MQTT data into MQTT Engine supports command writes
Here are the requirements:
- By default, tags created by the MQTT Engine Custom Namespace are read-only. You will need to configured the Custom Namespace to create writable tags.- Make sure to restart MQTT Engine after making this configuration change
- This will only make the tags writable but will not result in outgoing MQTT messages.
 
- Create a tag change script on each custom namespace tag that calls engine.publish() to publish the appropriate MQTT message back to the Edge device on the proper topic with the proper payload.- See MQTT Publishing via MQTT Engine for examples
 
- The Edge device must support writes on the published topic.