parameters: (event)
docstring: Publish message to MQTT server and data store.
docstring_summary: Publish message to MQTT server and data store.
docstring_tokens: Publish message to MQTT server and data store .
function: def log(event):
  
      """
      Publish message to MQTT server and data store.
      """
  
      message = "{0} {1}".format(datetime.utcnow().isoformat(), event)
      payload = {"value": message}
      print(message)
      send(payload)
function_tokens: def log ( event ) : message = "{0} {1}" . format ( datetime . utcnow ( ) . isoformat ( ) , event ) payload = { "value" : message } print ( message ) send ( payload )