![](/media/cache/profiles/b5c4ec91390a6fbccf8d918d443563ed.jpg.50x50_q85.jpg)
The program sends the current location over the cellular network.
Dependencies: aconno_I2C ublox-at-cellular-interface gnss ublox-cellular-base Lis2dh12 ublox-cellular-base-n2xx ublox-at-cellular-interface-n2xx low-power-sleep
Fork of example-gnss by
UBloxSara/udp.h@8:2bf886335fd0, 2018-11-30 (annotated)
- Committer:
- jurica238814
- Date:
- Fri Nov 30 16:19:41 2018 +0100
- Revision:
- 8:2bf886335fd0
Aconno init commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jurica238814 | 8:2bf886335fd0 | 1 | /* |
jurica238814 | 8:2bf886335fd0 | 2 | * U-Blox SARA UDP class |
jurica238814 | 8:2bf886335fd0 | 3 | * Made by Jurica @ aconno |
jurica238814 | 8:2bf886335fd0 | 4 | * More info @ aconno.de |
jurica238814 | 8:2bf886335fd0 | 5 | */ |
jurica238814 | 8:2bf886335fd0 | 6 | |
jurica238814 | 8:2bf886335fd0 | 7 | #ifndef __UDP_H__ |
jurica238814 | 8:2bf886335fd0 | 8 | #define __UDP_H__ |
jurica238814 | 8:2bf886335fd0 | 9 | |
jurica238814 | 8:2bf886335fd0 | 10 | #include "mbed.h" |
jurica238814 | 8:2bf886335fd0 | 11 | |
jurica238814 | 8:2bf886335fd0 | 12 | class Udp |
jurica238814 | 8:2bf886335fd0 | 13 | { |
jurica238814 | 8:2bf886335fd0 | 14 | public: |
jurica238814 | 8:2bf886335fd0 | 15 | Udp(char *ip, int port); |
jurica238814 | 8:2bf886335fd0 | 16 | uint8_t open(); |
jurica238814 | 8:2bf886335fd0 | 17 | uint8_t close(); |
jurica238814 | 8:2bf886335fd0 | 18 | char *_ip; |
jurica238814 | 8:2bf886335fd0 | 19 | int _port; |
jurica238814 | 8:2bf886335fd0 | 20 | private: |
jurica238814 | 8:2bf886335fd0 | 21 | protected: |
jurica238814 | 8:2bf886335fd0 | 22 | }; |
jurica238814 | 8:2bf886335fd0 | 23 | |
jurica238814 | 8:2bf886335fd0 | 24 | #endif //__UDP_H__ |