public void Dispose() { //should dispose of SD and Char display (at least!) #if ORGPAL_THREE palthreeDisplay.Dispose(); palAdcExpBoard.Dispose(); palthreeInternalAdc.Dispose(); palthreeButtons.Dispose(); #endif //System.IO.FileStream -- Dispose?? sendTelemetryTimer.Dispose(); sendShadowTimer.Dispose(); AwsIotCore.MqttConnector.Client.Close(); AwsIotCore.MqttConnector.Client.Dispose(); Sntp.Stop(); _logger = null; }