since particle has not (and will not) release a native ios library to configure (wifi) in the p2 and our ios developers have no experience with ec-jpake and aes encryption needed to implement this, we are forced to find another solution
we however like to add a little security and thought of using the mobile secret which should be available on the p2/deviceos: does anyone know if this is accessible somehow?
I’d just like to correct one point above - Particle is working towards releasing a native library for the P2, but the timelines are not clear just yet.
For the secret - you can scan the Data Matrix, and it, along with the Serial number, will be returned as text.
and for other users: it could very well be the p2 datamatrix is not visible from the outside of your product:
we flash the p2’s in the factory and read the device id. we also create a random qr-code for the product and associate the two on our server. when a phone is attempting to setup the p2, we ask the particle cloud for the mobile secret using the device id.