original_docstring: Static callback to handle incoming messages
docstring: Static callback to handle incoming messages
docstring_tokens: Static callback to handle incoming messages
code: def on_message(client, userdata, message):
          """Static callback to handle incoming messages"""
          payload = message.payload.decode("utf-8")
          json_message = json.loads(payload)
          
          if StateData.is_state_data(json_message):
              userdata.state_data_available.put_nowait(StateData(json_message))
  
          if SensorsData.is_sensors_data(json_message):
              userdata.sensor_data_available.put_nowait(SensorsData(json_message))
code_tokens: def on_message ( client , userdata , message ) : payload = message . payload . decode ( "utf-8" ) json_message = json . loads ( payload ) if StateData . is_state_data ( json_message ) : userdata . state_data_available . put_nowait ( StateData ( json_message ) ) if SensorsData . is_sensors_data ( json_message ) : userdata . sensor_data_available . put_nowait ( SensorsData ( json_message ) )
short_docstring: Static callback to handle incoming messages
short_docstring_tokens: Static callback to handle incoming messages
comment: """Static callback to handle incoming messages"""