![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
This is a simple program to work with RedBearLab BLE Controller App. Type something from the Terminal to send to the BLEController App or vice verse. Characteristics received from App will print on Terminal. This version works on the first hw version of the BLE Nano (1)
Dependencies: BLE_API mbed nRF51822
Fork of nRF51822_SimpleChat by
myData.h
00001 00002 typedef struct{ 00003 uint8_t hour; 00004 uint8_t min; 00005 uint8_t sec; 00006 } mtime_t; 00007 00008 typedef struct{ 00009 mtime_t currentTime; 00010 mtime_t newTime; 00011 bool updateTime; // true if currentTime needs to be updated with newTime; 00012 } mtime_manager_t; 00013 00014 00015 typedef struct { 00016 uint8_t month; // 1..12 00017 uint8_t day; // 1..31 00018 uint8_t year; // 20_XX, 2016 => 16; 00019 }date_t; 00020 00021 00022 typedef struct{ 00023 date_t currentDate; 00024 date_t newDate; 00025 bool updateDate; // true if currentDate needs to be updated with newDate; 00026 } mdate_manager_t; 00027 00028 00029 typedef struct { 00030 float light; 00031 float gndV; 00032 float temp; 00033 bool led_on; 00034 mtime_t time; 00035 date_t date; 00036 } myData_t; 00037 00038 #define MAXBUFFER 90 00039 // bool isInputValid(uint8_t * buffer); 00040 00041 uint8_t eNrDaysPerMonth[12]= {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
Generated on Mon Jul 18 2022 05:58:50 by
![doxygen](doxygen.png)