I’ve set up a cloud function in Firebase Functions that my device triggers by publishing to a pubsub topic. The cloud function makes the fetch
request to the preAuth endpoint;
https://hosted.mender.io/api/management/v2/devauth/devices'
.
The plan being that my device manufacturer would boot the device to test it before shipping to the customer. This sets the device up to receive software updates as soon as the customer receives it and boots it again for their use.
In my logs I get the response from the POST
request in the promise callback as shown in the API example;
body: {"domain":{"domain":null,"_events":{},"_eventsCount":3,"members":[]}}
The problem is I don’t see the device show up in any of the hosted Mender categories(Pending
, Preauthorized
or rejected
).
if anyone can help with what I may be missing it would be appreciated.
Thanks