Testing System.updatesPending() without an Enterprise Product Plan

xenon
Tags: #<Tag:0x00007fe2211c3fa8>

#1

I am building a system of mesh networked Xenons with an Ethernet connected Xenon gateway. The endnode Xenons are all battery powered and therefore operate as sleepy endnodes with only mesh connection. To allow for OTA flashing I have implemented pub-sub that will set each endnode Xenon; System.enableUpdates(), stop the sleeping cycle and Particle.connect() so that they are available for a flash. Looking at the documentation for 1.2.X there is now a facility to check for System.updatesPending() which I would like to use however it appears that this only works with an Enterprise Product Plan - so how can this be tested in development? Indeed, is there a way for the device firmware to know whether it is on an Enterprise Product Plan.