octoblu / meshblu

Meshblu is a cross-protocol IoT machine-to-machine messaging system.
https://meshblu.readme.io/
MIT License
816 stars 181 forks source link

Added owner to configureWhitelist if specified on device registration. #96

Closed ra4king closed 9 years ago

ra4king commented 9 years ago

claimdevice adds the owner to both the discoverWhitelist and configureWhitelist. Since specifying an owner property when registering a device claims it, this behavior should be mirrored there.

brianehlert commented 9 years ago

Be sure they are only added to the lists, not replace. As we may want an array fir discover and configure. Personally, I just set them at registration time.

ra4king commented 9 years ago

I did the same thing as they did with discoverWhitelist by using ?=, conditional set. If a configureWhitelist property is specified at creation time, it isn't touched.