sigfox
Fork of Sigfox by
Sigfox.h@0:5e0ae613c18c, 2017-04-18 (annotated)
- Committer:
- Raffaello
- Date:
- Tue Apr 18 13:49:20 2017 +0000
- Revision:
- 0:5e0ae613c18c
- Child:
- 1:93450d8b2540
Introduction Sigfox library
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Raffaello | 0:5e0ae613c18c | 1 | /* Copyright (c) 2015 ARM Limited |
| Raffaello | 0:5e0ae613c18c | 2 | * |
| Raffaello | 0:5e0ae613c18c | 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| Raffaello | 0:5e0ae613c18c | 4 | * you may not use this file except in compliance with the License. |
| Raffaello | 0:5e0ae613c18c | 5 | * You may obtain a copy of the License at |
| Raffaello | 0:5e0ae613c18c | 6 | * |
| Raffaello | 0:5e0ae613c18c | 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| Raffaello | 0:5e0ae613c18c | 8 | * |
| Raffaello | 0:5e0ae613c18c | 9 | * Unless required by applicable law or agreed to in writing, software |
| Raffaello | 0:5e0ae613c18c | 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| Raffaello | 0:5e0ae613c18c | 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| Raffaello | 0:5e0ae613c18c | 12 | * See the License for the specific language governing permissions and |
| Raffaello | 0:5e0ae613c18c | 13 | * limitations under the License. |
| Raffaello | 0:5e0ae613c18c | 14 | * |
| Raffaello | 0:5e0ae613c18c | 15 | * @section DESCRIPTION |
| Raffaello | 0:5e0ae613c18c | 16 | * |
| Raffaello | 0:5e0ae613c18c | 17 | * Send command to Sigfox |
| Raffaello | 0:5e0ae613c18c | 18 | * |
| Raffaello | 0:5e0ae613c18c | 19 | */ |
| Raffaello | 0:5e0ae613c18c | 20 | |
| Raffaello | 0:5e0ae613c18c | 21 | #include "ATParser.h" |
| Raffaello | 0:5e0ae613c18c | 22 | #include "mbed.h" |
| Raffaello | 0:5e0ae613c18c | 23 | |
| Raffaello | 0:5e0ae613c18c | 24 | class Sigfox |
| Raffaello | 0:5e0ae613c18c | 25 | { |
| Raffaello | 0:5e0ae613c18c | 26 | private: |
| Raffaello | 0:5e0ae613c18c | 27 | ATParser *_at; |
| Raffaello | 0:5e0ae613c18c | 28 | |
| Raffaello | 0:5e0ae613c18c | 29 | public: |
| Raffaello | 0:5e0ae613c18c | 30 | Sigfox(ATParser &at) : _at(&at) { |
| Raffaello | 0:5e0ae613c18c | 31 | |
| Raffaello | 0:5e0ae613c18c | 32 | }; |
| Raffaello | 0:5e0ae613c18c | 33 | |
| Raffaello | 0:5e0ae613c18c | 34 | bool ready(); |
| Raffaello | 0:5e0ae613c18c | 35 | |
| Raffaello | 0:5e0ae613c18c | 36 | bool send(const char *data); |
| Raffaello | 0:5e0ae613c18c | 37 | }; |
