mirror of
				https://github.com/manuelbl/ttn-esp32.git
				synced 2025-10-31 10:40:35 +01:00 
			
		
		
		
	Add provisioning task, refactor provisioning
This commit is contained in:
		| @ -104,6 +104,13 @@ public: | ||||
|      */ | ||||
|     bool provision(const char *devEui, const char *appEui, const char *appKey); | ||||
|  | ||||
|     /** | ||||
|      * @brief Start task that listens on configured UART for provisioning commands. | ||||
|      *  | ||||
|      * Run 'make menuconfig' to configure it. | ||||
|      */ | ||||
|     void startProvisioningTask(); | ||||
|  | ||||
|      /** | ||||
|      * @brief Activate the device via OTAA. | ||||
|      *  | ||||
| @ -176,12 +183,8 @@ public: | ||||
|  | ||||
| private: | ||||
|     TTNMessageCallback messageCallback; | ||||
|     bool haveKeys; | ||||
|  | ||||
|     bool joinCore(); | ||||
|     bool decodeKeys(const char *devEui, const char *appEui, const char *appKey); | ||||
|     bool saveKeys(); | ||||
|     bool restoreKeys(bool silent); | ||||
| }; | ||||
|  | ||||
| #endif | ||||
|  | ||||
		Reference in New Issue
	
	Block a user