AME Status and Logging

From IoT with AME
Revision as of 09:29, 19 June 2018 by Ctreber (talk | contribs) (Created page with "The AME Stack =AME Status Information and Logging= Since a whole bunch of components are working together things can get tough when there is a problem. The AME stack pr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The AME Stack

AME Status Information and Logging

Since a whole bunch of components are working together things can get tough when there is a problem.

The AME stack provides logging via I2C and status information via a RGB-LED.

Logging can be switched off in production

  • at build time by simply not compiling it in at all (thus saving space as well) or
  • at runtime via switching an I/O pin on or off on Arduino reset

The status LED is programmable and consumes only one Arduino pin. It is able to provide quite a bit of useful information!

  • Regarding the WLAN connection:
    • Description to be done (no connection/ trying/ connected)
  • Regarding the TCP connection:
    • Description to be done (no connection/ trying/ connected)
  • When the MQTT connection is in place
    • The LED twitches every second, indicating the Arduino is running and not stuck in an endless loop
    • Every time a message is sent, it flashes in blue, indicating the attempt is being made
    • Every time a message is received, it flashes in ???, indicating a message has been received (the broker did sent it our way)
    • Every time a ping response is received, it changes color (either green or magenta), indicating pings are being sent and received (the broker replied)

The AME Stack