Provision the device to West Connectivity
West Connectivity supports two protocols Http/Mqtt to communicate with, for this quick start, we are going to use a simple tool Postman as a simulated device to publish data to West Connectivity.
Prerequisite
- Go through Create a connector to create an Connector
- Make sure the Provision setting is enabled, the Authentication is Token
- Install the Postman
- Add a collection and add a request using Postman app
Provision the device using HTTP API
On Connector page, copy the connector URL by click link icon.
The device provisioning API of HTTP is /provision/activate
The full request URL should be <connector URL>/provision/activate
,
(ex: https://e3qasvk1122e00000.m2.diagnostic.westpharma.com/provision/activate).
Add a x-www-form-urlencoded key named "id" with value <device-name>
in Body.
Click Send
button, you would see there is a response with 200 OK and a token in body, please record this token, it will be used on next chapter.
Now you can see the device you provisioned on UI device list:
Next: You can Define the data format