Skip to content

Instantly share code, notes, and snippets.

@Sushisugre
Last active April 11, 2017 00:35
Show Gist options
  • Save Sushisugre/c7f802ccc692d3166d960dfbcaf63dd8 to your computer and use it in GitHub Desktop.
Save Sushisugre/c7f802ccc692d3166d960dfbcaf63dd8 to your computer and use it in GitHub Desktop.

For packet structure, refer to: packet design

Command Code

  • 0 reset?
  • 1 report device status
    • i.e. "Super Bob Command"
    • device time, energy, mode, temperature,schedule
  • 2 change default setting
  • 3 set device schedule - no recurring
  • 4 set device schedule - recurring
  • 5 reset all schedule
  • 6 reset schedule
    • Specify by configuration ID

Parameter Code

  • 1 bucket_size
  • 2 min_report_interval
  • 3 device_mode

Device Mode Code

  • 0 factory mode?
  • 1 active
    • Sensing cars and listening to server commands
  • 2 passive
    • NOT sensing cars but still listening to server commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment