Feature #641

Add device type to registration

Added by Hammel about 1 year ago. Updated 11 months ago.

Status:ClosedStart date:13 Jul 2018
Priority:ImmediateDue date:
Assignee:Hammel% Done:

100%

Category:Software
Target version:Iron Man - 002 - MVP
Severity:03 - Medium

Description

This means that a registration would be /register/uuid/type. This will allow the monitor to keep track of device types and then, via a new app, associate names/descriptions (and icons) with devices. Both the sensor and imrest needs to support the extended registration API.

The build system should allow setting a device type (eg -DIMTYPE=light_switch) so I could reuse the code for different devices supported by the ESP-01 pins, and later, through ESP settings, different ESP8266 devices.

Associated revisions

Revision dcd0bf4c
Added by Hammel 12 months ago

RM #641: Added code for storing (though currently incorrectly) the data provided by the sensor as a JSON object.

Revision 7dfccb6e
Added by Hammel 12 months ago

RM #610, RM #641: Add Base64 library to build. Add configurable device type and description to build.

Revision ac4db7a8
Added by Hammel 12 months ago

RM #595, RM #641, RM #646, RM#610: Implement better AES and Base64 encoding handling in send and receive functions. Verify requests come from registered monitor. Remove serialNotfiy() function and flags, replacing with proper timer-handler device registration. Lots of code cleanup.

Revision d87d54f6
Added by Hammel 12 months ago

RM #641: Use util.inspect() to write request parameters to file.

History

#1 Updated by Hammel about 1 year ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 30

Code is implemented in imlightsw to properly set this by build parameters (defaulting to a light_switch type). Verify the build works as expected using strings on binary.

Needs testing against code in imrest that captures those parameters. Also needs code in imrest to store these parameters with the UUID in the registration file, probably as json data.

#2 Updated by Hammel 11 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 30 to 100

Verified working on hardware. The following was registered from an IoT device on the monitor.

{ uuid: 'ab0fc478-a019-11e8-9e6e-940c6de23447',
  type: 'light_switch',
  description: 'Toggle light switch',
  state: 0 }

Type is provided. All changes committed and pushed.

Closing issue.

Also available in: Atom PDF