Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Grove_Generic_Analog_In

Ten Wong edited this page Jun 8, 2016 · 3 revisions

The Grove Generic Analog In can read external analog value, range on 0~1023.

API Description

GET /v1/node/GenericAInA0/analog

Read the ADC measurement of a generic analog device. The full range is 0~1023.

Request method: GET

Returns:

HTTP 200 { "analog": [int value] }
analog: int value, The measurement of ADC, 0~1023
HTTP 400 {"error": "failure reason here"}
Curl example: 
curl -k https://iot.seeed.cc/v1/node/GenericAInA0/analog

Response: 
{"analog": 2}