1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include <stdlib.h> #include <esp_log.h> #include "eos.h" #include "cell.h" void eos_cell_data_handler(unsigned char mtype, unsigned char *buffer, uint16_t size) { int rv; rv = eos_modem_take(1000); if (rv) return; buffer += 1; size -= 1; switch (mtype) { } eos_modem_give(); }