The Arduino 101 Moisture Sensor lets users receive data from a moisture sensor attached to the Arduino, however it can be used for any similar device that provides a linear analog signal based on some external phenomenon.
More Links
Properties
⦁
Pin
– The Pin on the Arduino board that the device is wired in to.Methods
⦁
IsSupported
– Tests whether the Bluetooth low energy device is broadcasting support for the service. If true, calls to TurnOn and TurnOff should work correctly. Otherwise an error will be reported through the Screen's ErrorOccurred event.
⦁
ReadMoisture
– Obtain the most recent reading from the moisture sensor as reported by the Arduino. On success, the MoistureReceived
event will be run.
⦁
RequestMoistureUpdates
– Request notification of updates for the moisture sensor attached to the Arduino 101. The MoistureReceived
event will be run as moisture sensor readings are received from the Arduino.
⦁
StopMoistureUpdates
– Stop listening for notifications of moisture sensor readings from the ARduino. This only has an effect if there was a previous call to RequestMoistureUpdates
. There may be additional pending messages that will be processed after this call.Events
⦁
MoistureReceived
– The MoistureReceived
event is run when a moisture measurement is received from the moisture sensor attached to the Arduino 101.
Parameters:
댓글 없음:
댓글 쓰기