123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #if GATEWAYMGT==1
- #if !defined _THINGPORT
- #error "The management functions needs _THINGPORT defined (and not over _TTNPORT)"
- #endif
- void gateway_mgt(uint8_t size, uint8_t *buff) {
- uint8_t opcode = buff[3];
-
- switch (opcode) {
- case MGT_RESET:
- Serial.println(F("gateway_mgt:: RESET"));
-
- setup();
-
-
- break;
- case MGT_SET_SF:
- Serial.println(F("gateway_mgt:: SET SF"));
-
- break;
- case MGT_SET_FREQ:
- Serial.println(F("gateway_mgt:: SET FREQ"));
-
- break;
- default:
- Serial.print(F("gateway_mgt:: Unknown UDP code="));
- Serial.println(opcode);
- return;
- break;
- }
- }
- #endif
|