NuMaker connection with AWS IoT thru MQTT/HTTPS
Dependencies: MQTT
Diff: pre-main/provision.cpp
- Revision:
- 42:fa6f7f79a112
- Parent:
- 41:b878d7cd7035
--- a/pre-main/provision.cpp Fri Mar 27 14:32:06 2020 +0800 +++ b/pre-main/provision.cpp Fri Feb 26 13:31:36 2021 +0800 @@ -60,6 +60,8 @@ void provision(void) { +#if DEVICE_FLASH + int kv_reset(const char *kvstore_path); /* Initialize kvstore */ @@ -117,7 +119,7 @@ printf("\rReset kvstore...OK\r\n"); -#if !DEVICE_TRNG && !TARGET_PSA +#if !DEVICE_TRNG && !TARGET_PSA && !TARGET_PSA_Target #if !defined(MBEDTLS_ENTROPY_HARDWARE_ALT) /* Inject trivial seed for development */ @@ -140,7 +142,7 @@ printf("\rInject NV seed...OK\r\n"); #endif /* !defined(MBEDTLS_ENTROPY_HARDWARE_ALT) */ -#endif /* #if !DEVICE_TRNG && !TARGET_PSA */ +#endif /* #if !DEVICE_TRNG && !TARGET_PSA && !TARGET_PSA_Target */ /* Mark the device as provisioned */ kv_status = inner_store->set(KV_KEY_PROVISION, "1", 1, KVStore::WRITE_ONCE_FLAG); @@ -149,4 +151,6 @@ } printf("Provision for development...OK\r\n"); + +#endif /* #if DEVICE_FLASH */ }