LoRa Access Point 1.5.2018

Dependencies:   mbed ds3231 SX1276Lib_LoRa_Access_Point

Committer:
lukas_formanek
Date:
Mon Apr 23 21:28:36 2018 +0000
Revision:
3:7a3ddda464bf
Parent:
1:7543af31b91f
Child:
4:e20eb5efd859
23.4.2018 ver 2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lukas_formanek 0:ea088908ad26 1 #include "mbed.h"
lukas_formanek 0:ea088908ad26 2
lukas_formanek 0:ea088908ad26 3 #include "RFM95W.h"
lukas_formanek 0:ea088908ad26 4 #include "ESP8266.h"
lukas_formanek 1:7543af31b91f 5 #include "Board.h"
lukas_formanek 0:ea088908ad26 6
lukas_formanek 3:7a3ddda464bf 7 DigitalIn sw(PC_13);
lukas_formanek 0:ea088908ad26 8
lukas_formanek 0:ea088908ad26 9 int main() {
lukas_formanek 0:ea088908ad26 10 wifi.Init();
lukas_formanek 0:ea088908ad26 11 bt.Init();
lukas_formanek 0:ea088908ad26 12 rfm.Init();
lukas_formanek 0:ea088908ad26 13 // wifi.Test();
lukas_formanek 0:ea088908ad26 14 while(1) {
lukas_formanek 0:ea088908ad26 15 wifi.CheckSettings();
lukas_formanek 3:7a3ddda464bf 16 if(!sw)
lukas_formanek 3:7a3ddda464bf 17 {
lukas_formanek 3:7a3ddda464bf 18 float v = 0.25;
lukas_formanek 3:7a3ddda464bf 19 rfm.SendValue(4,v);
lukas_formanek 3:7a3ddda464bf 20 wait(0.25);
lukas_formanek 3:7a3ddda464bf 21 }
lukas_formanek 0:ea088908ad26 22 }
lukas_formanek 0:ea088908ad26 23 }