Teste Flash
Dependencies: pulga-lorawan-drv Si1133 BME280
serial_cmds.cpp
- Committer:
- ruschigo
- Date:
- 2021-03-02
- Revision:
- 64:ed68ddac6360
- Parent:
- 63:4ec1808fb547
- Child:
- 65:4090220e19d2
File content as of revision 64:ed68ddac6360:
#include "serial.h" bool SerialCommandRun(const char *msg) { char Option = msg[1]; /// recebo opcao switch (Option) { case CMD_PRINT_LAST_GPS: int local_lat, local_log; //gps_get_lat_lon(&local_lat, &local_log); //get_latitude pc.printf("<g%d,%d\n>", get_latitude(), get_longitude()); break; case CMD_SEND_HELLO: pc.printf("<hHELLOANTONIO>"); char hello[100] = "Ola Antonio!\n"; int ret; ret = lora_send_message((uint8_t*)hello, (uint16_t)sizeof(hello)); if(ret > 0) pc.printf("Send OK\n"); else pc.printf("Fail to Send\n"); break; } return true; }