def ping(): """ Send a ping to the server """ global _nextPingAt _nextPingAt = datetime.datetime.now() + datetime.timedelta(0, PingFrequency) IOT.sendCommandTo(_pingCounter, IOT.DeviceId, WatchDogAssetId)