Request that notifies the platform a device which wants to register. During the registration the sequence number is reset to a random value the platform is notified if the device has a light schedule, the type of the device, the device identification, and the device communicates its IP address to the platform. Also a random number is determined by the device and this 'randomDevice' should be present in the response form the platform.
Response which holds the time of the platform so the device can synchronize the time, contains location information for the device like GPS coordinates and Daylight Saving Time information. The device will sent ConfirmRegisterDeviceRequest after receiving the RegisterDeviceResponse. Also a random number is determined by the platform and this 'randomPlatform' should be present in the next request 'ConfirmRegisterDeviceRequest' by the device.
enumDeviceType { PSLD =0; SSLD =1;}enumStatus { OK =0; FAILURE =1; // general failure REJECTED =2; // request received in wrong state}message LocationInfo { optional sint32 timeOffset =1; // correction in minutes with respect to UTC optional sint32 latitude =2; // divide by 1000000 to get float value optional sint32 longitude =3; // divide by 1000000 to get float value}
Example
OSLP RegisterDeviceRequest sent from 'device-01' to platform: