raphaelthurnherr / algobot_onionOmega

1 stars 0 forks source link

Invert motor setting message #38

Closed raphaelthurnherr closed 5 years ago

raphaelthurnherr commented 5 years ago

Possibility to set by a configuration message, the opposite direction as "default" for solve the mecanical or electrical inverting.

raphaelthurnherr commented 5 years ago

Enhancement from version 1.5.0 See: http://kehops.io/doku.php?id=communication:mqttmessage#configuration_kehops

Message config:

{
   "MsgID":0,
   "MsgTo":"algo_test",
   "MsgFrom":"MQTTFX",
   "MsgData":{
      "MsgType":"command",
      "MsgParam":"config",
      "MsgValue":[
         {
            "config":{
               "reset":"false",
               "save":"true"
            },
            "stream":{
               "state":"on",
               "time":250,
               "onEvent":"on"
            },
            "motor":[
               {
                  "motor":1,
                  "inverted":"off"
               },
               {
                  "motor":0,
                  "inverted":"on"
               }
            ]
         }
      ]
   }
}