def demo_connectivity_issues()

in iot_client.py [0:0]


    def demo_connectivity_issues(self):
        if self.shadow['battery_state_of_charge'] < 3:
            print("Battery low, shutting down")
            self.send_heartbeats = False
            time.sleep(2)
            self.disconnect()
            sys.exit(0)

        elif self.shadow['firmware_version'] == "0.1":
            print("Unhandled exception")
            sys.exit(1)

        elif self.shadow['location'] == 'atl':
            print("Temperature sensor stopped working, changing to 100")
            new_shadow = {"desired": {"temperature": 100}}
            self.update_device_configuration_from_shadow_update(new_shadow)

        elif self.shadow['firmware_version'] == "1.0":
            print("Minor bug in old firmware, can no longer update telemetry data")
            self.send_heartbeats = False