wayne roberts / Mbed OS lr1110_wifi_geolocation_gateway

Dependencies:   mbed-http lr1110 sx12xx_hal

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 #include "select-demo.h"
00002 
00003 #include "mbed.h"
00004 #if DEMO == DEMO_HTTPS
00005     #include "https_request.h"
00006 #elif DEMO == DEMO_HTTP
00007     #include "http_request.h"
00008 #endif
00009 
00010 #define GOOGLE      1
00011 #define COMBAIN     2
00012 //#define GEOLOCATION_PROVIDER        GOOGLE
00013 //#define GEOLOCATION_PROVIDER        COMBAIN
00014 
00015 #define HEADER_LENGTH           10  /* for chipEUI and extra reserved */
00016 
00017 int post_scan_result(const char*, float*, float*, int*);
00018 void wifi_result_to_json(bool first, const uint8_t *result, unsigned macStart, unsigned rssi_idx);
00019 void json_start(void);
00020 void json_end(void);
00021 extern char json[];
00022 extern bool wifiResultFormatBasic;
00023 extern NetworkInterface* network;
00024 void dump_response(HttpResponse* res);
00025