This library provides data update method to Fastsensing.

Dependents:   SCP1000_Fastsensing

Committer:
AkiraK
Date:
Fri May 19 01:09:19 2017 +0000
Revision:
8:21b39074c0f5
Parent:
3:d0d34327ea79
Child:
9:313790e8b56d
Add LICENSE on Fastsensing.h;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AkiraK 8:21b39074c0f5 1 /*
AkiraK 8:21b39074c0f5 2 MIT License
AkiraK 8:21b39074c0f5 3
AkiraK 8:21b39074c0f5 4 Copyright (c) 2017 Fast Sensing Inc.
AkiraK 8:21b39074c0f5 5
AkiraK 8:21b39074c0f5 6 Permission is hereby granted, free of charge, to any person obtaining a copy
AkiraK 8:21b39074c0f5 7 of this software and associated documentation files (the "Software"), to deal
AkiraK 8:21b39074c0f5 8 in the Software without restriction, including without limitation the rights
AkiraK 8:21b39074c0f5 9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
AkiraK 8:21b39074c0f5 10 copies of the Software, and to permit persons to whom the Software is
AkiraK 8:21b39074c0f5 11 furnished to do so, subject to the following conditions:
AkiraK 8:21b39074c0f5 12
AkiraK 8:21b39074c0f5 13 The above copyright notice and this permission notice shall be included in all
AkiraK 8:21b39074c0f5 14 copies or substantial portions of the Software.
AkiraK 8:21b39074c0f5 15
AkiraK 8:21b39074c0f5 16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
AkiraK 8:21b39074c0f5 17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
AkiraK 8:21b39074c0f5 18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AkiraK 8:21b39074c0f5 19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
AkiraK 8:21b39074c0f5 20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
AkiraK 8:21b39074c0f5 21 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
AkiraK 8:21b39074c0f5 22 SOFTWARE.
AkiraK 8:21b39074c0f5 23 */
AkiraK 8:21b39074c0f5 24
AkiraK 0:f26c02be48f9 25 #ifndef FASTSENSING_H
AkiraK 0:f26c02be48f9 26 #define FASTSENSING_H
AkiraK 0:f26c02be48f9 27
AkiraK 0:f26c02be48f9 28 #include "mbed.h"
AkiraK 0:f26c02be48f9 29 #include "EthernetInterface.h"
AkiraK 0:f26c02be48f9 30 #include "HTTPClient.h"
AkiraK 0:f26c02be48f9 31
AkiraK 0:f26c02be48f9 32 class Fastsensing{
AkiraK 0:f26c02be48f9 33 private :
AkiraK 0:f26c02be48f9 34 EthernetInterface eth; //eth instance is created from EthernetInterface
AkiraK 0:f26c02be48f9 35 HTTPClient http; //http instance is created from HTTPClient
AkiraK 0:f26c02be48f9 36 public:
AkiraK 0:f26c02be48f9 37 int updateData(char *deviceId, char *channelId, double data);
AkiraK 0:f26c02be48f9 38 int updateDataAll(char *deviceId, char *channelId[3], float data[3]);
AkiraK 3:d0d34327ea79 39 void ethConnect();
AkiraK 3:d0d34327ea79 40 void ethDisconnect();
AkiraK 0:f26c02be48f9 41 };
AkiraK 0:f26c02be48f9 42
AkiraK 0:f26c02be48f9 43 #endif