Feature #641
closedAdd device type to registration
100%
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.
Updated by Hammel over 6 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.
Updated by Hammel over 6 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.