No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

API.txt 761B

12345678910111213141516171819202122232425262728293031323334
  1. SERVER
  2. GET /devices
  3. GET /device/:dev
  4. POST /device/:dev/data
  5. GET /device/:dev/data
  6. POST /devices/register
  7. GET /gateways
  8. GET /gateways/:gw
  9. POST /gateways/register
  10. GET /ping
  11. GET /health
  12. GATEWAY (Intermediary & Final)
  13. POST /gateways/register
  14. POST /devices/register
  15. POST /device/:dev/data
  16. GET /gateways
  17. GET /gateway/:gw
  18. GET /ping
  19. GET /health
  20. DEVICE
  21. ---
  22. Data Format
  23. { Name : LOCAL_ENDPOINT.NAME,
  24. Data : dataItem++, //an integer incrementing everytime data is sent
  25. Time : Date.now(), //the date (+hour) the data has been sent
  26. }
  27. Register Format
  28. { Name : LOCAL_ENDPOINT.NAME, //the name of the entity which want to register itself
  29. PoC : 'http://' + LOCAL_ENDPOINT.IP + ':' + LOCAL_ENDPOINT.PORT, //the address from which the registering entity can be joined
  30. }