Bug #664

Need function supporting retrieval of state data from IoT device.

Added by Hammel about 2 years ago. Updated about 2 years ago.

Status:ClosedStart date:14 Aug 2018
Priority:ImmediateDue date:
Assignee:Hammel% Done:

100%

Category:Software
Target version:Iron Man - 0.5.0
Severity:02 - High

Description

imlightsw can mostly do this but the code for actually requesting the state data doesn't include actually returning it yet.

Associated revisions

Revision 02c2e57a
Added by Hammel about 2 years ago

RM #595, RM #664: Fixes to properly handle registration on reboot and AES message return on GET.
Move some stack variables to globals.
Add generateIV() to generate an IV for each outbound message.
Add generate_random_uint8() to generate random uint8 values.
Clean up handleDeviceGET() to properly encrypt and encode.
Return state data as encrypted and encoded JSON packet in handleDeviceGet().
Format SPIFFS when we complete registration to save registration data. Otherwise it may not have been formatted previously.
If we read registration data on boot, then mark us as registered.

History

#1 Updated by Hammel about 2 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

The device GET function has been fully implemented. It does return data but whether this is decipherable is yet to be determined. The function has been manually tested to verify it returns properly formatted JSON with IV and Message. Further tests will reveal if the data has been encrypted and encoded correctly. Additional issues will be created if it has not.

All changes committed and pushed. Since this was just about implementing the function I'm going to close this issue.

Also available in: Atom PDF