Skip to content

Commit

Permalink
ESP32: Supporting de-initializing the IoT object
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaneam committed Apr 5, 2021
1 parent 3378436 commit 24f0bdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ESP32/lib/Cloud/Azure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,9 @@ void AzureIoTHub::HeartBeat()
{
if (device_ll_handle != NULL)
IoTHubDeviceClient_LL_DoWork(device_ll_handle);
}

void AzureIoTHub::Distroy()
{
IoTHub_Deinit();
}
1 change: 1 addition & 0 deletions ESP32/lib/Cloud/Azure.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class AzureIoTHub
bool verbose = false);
void HeartBeat();
Languages GetLanguage();
void Distroy();

private:
IOTHUB_DEVICE_CLIENT_LL_HANDLE device_ll_handle;
Expand Down

0 comments on commit 24f0bdd

Please sign in to comment.