This library provides data update method to Fastsensing.
Dependents: SCP1000_Fastsensing
Fastsensing.h@3:d0d34327ea79, 2017-04-04 (annotated)
- Committer:
- AkiraK
- Date:
- Tue Apr 04 08:41:28 2017 +0000
- Revision:
- 3:d0d34327ea79
- Parent:
- 0:f26c02be48f9
- Child:
- 8:21b39074c0f5
Changed time out value of updateAll method.; Separate Ethernet connect and disconnect method with data update method.
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 | 3:d0d34327ea79 | 15 | void ethConnect(); |
AkiraK | 3:d0d34327ea79 | 16 | void ethDisconnect(); |
AkiraK | 0:f26c02be48f9 | 17 | }; |
AkiraK | 0:f26c02be48f9 | 18 | |
AkiraK | 0:f26c02be48f9 | 19 | #endif |