Project

General

Profile

Actions

Feature #641

closed

Add device type to registration

Added by Hammel over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
Software
Target version:
Start date:
13 Jul 2018
Due date:
% Done:

100%

Estimated time:
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.

Actions #1

Updated by Hammel over 3 years 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.

Actions #2

Updated by Hammel over 3 years 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.

Actions

Also available in: Atom PDF