This library provides data update method to Fastsensing.
Dependents: SCP1000_Fastsensing
Fastsensing.h@0:f26c02be48f9, 2017-03-20 (annotated)
- Committer:
- AkiraK
- Date:
- Mon Mar 20 01:28:59 2017 +0000
- Revision:
- 0:f26c02be48f9
- Child:
- 3:d0d34327ea79
Completed creating fast sensing library;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AkiraK | 0:f26c02be48f9 | 1 | #ifndef FASTSENSING_H |
AkiraK | 0:f26c02be48f9 | 2 | #define FASTSENSING_H |
AkiraK | 0:f26c02be48f9 | 3 | |
AkiraK | 0:f26c02be48f9 | 4 | #include "mbed.h" |
AkiraK | 0:f26c02be48f9 | 5 | #include "EthernetInterface.h" |
AkiraK | 0:f26c02be48f9 | 6 | #include "HTTPClient.h" |
AkiraK | 0:f26c02be48f9 | 7 | |
AkiraK | 0:f26c02be48f9 | 8 | class Fastsensing{ |
AkiraK | 0:f26c02be48f9 | 9 | private : |
AkiraK | 0:f26c02be48f9 | 10 | EthernetInterface eth; //eth instance is created from EthernetInterface |
AkiraK | 0:f26c02be48f9 | 11 | HTTPClient http; //http instance is created from HTTPClient |
AkiraK | 0:f26c02be48f9 | 12 | public: |
AkiraK | 0:f26c02be48f9 | 13 | int updateData(char *deviceId, char *channelId, double data); |
AkiraK | 0:f26c02be48f9 | 14 | int updateDataAll(char *deviceId, char *channelId[3], float data[3]); |
AkiraK | 0:f26c02be48f9 | 15 | }; |
AkiraK | 0:f26c02be48f9 | 16 | |
AkiraK | 0:f26c02be48f9 | 17 | #endif |