Waziup / Socialbackend

1 stars 3 forks source link

SMS Gateway #17

Open cdupont opened 6 years ago

cdupont commented 6 years ago

The goal is that the IoT gateways can send SMS to the Waziup platform, instead of sending HTTP requests. This way, gateways that don't have access to internet can still send data via SMS to the platform. Plivo can receive SMS and forward them to an API: https://developers.plivo.com/getting-started/messages/receiving-and-replying-to-sms/

So, we need to open an API on the social backend, that is compatible with Plivo format. The SMS content will be:

SensorData domain:<domain>, sensorID:<sensorID>, measID:<measurementID>, value:<value>, timestamp:<timestamp>

For example:

SensorData domain:waziup, sensorID:MySensor, measID:TC, value:25.6, timestamp:2016-06-08T18:20:27.873Z

This SMS content will be transformed into an API call:

POST http://<platform_url>/api/v1/domains/<domain>/sensors/<sensorID>/measurements/<measID>/values
{value: <value>,  timestamp: <timestamp>}
cdupont commented 6 years ago

Was anything done with this? The review is in one Week!!!!!!!