Offline commands worked for Azure-IoT-Hub-Tester, but not my device. I am developing device that connects to IoT Central on Mqtt protocol. I want to use the Offline command and follow the instruction on https://learn.microsoft.com/en-us/azure/iot-central/core/howto-use-commands. When I connect to the server using Azure-IoT-Hub-Tester, offline command seem to be working. The command that executed on the IoT Central while device is disconnected is received by the Azure-IoT-Hub-Tester. However, when I connect my device to the server, offline command never comes. My device receives the commands correctly when it is connected to the server. But when command is executed while device is disconnected, the command is missing when the device connects. To make sure that the server never sent the command I even find a way to log the TLS communication between device and server. Anyone had similar experience?
Couldn't get IoT Central offline command to work
59 Views Asked by Steven At
1
There are 1 best solutions below
Related Questions in AZURE-IOT-HUB
- IoT Hub Equivalent For IoT Central Offline commands
- Alternatives for azure-iot-hub python package
- Azure Device Update for IoT Hub & Deployment
- How to retrieve IotHub usage information inside Azure Function
- Upload device's x509 certificate to Azure Iothub
- Too many requests error while creating scheduled jobs in IOT central create job API
- 'Too many requests' error on Azure IOT central create job API
- After updating a reported property, attempting to fetch it returns the previous version, not the latest one in Azure Module Client
- Azure Data Manager for Agriculture - Sensor Telemetry Data
- Connecting to RabbitMQ with Azure IoT Hub Device client
- MQTT: Connection to Azure IoT Hub (Micropython)
- AT Commands to send/publish data to azure iot hub using sim808
- Couldn't get IoT Central offline command to work
- Azure IoT DPS - Enrollment Group - Create Or Update - Rest API
- How do I use Azure IoT SDK (C#) to develop code to send data from my robotic arm to my IoT hub?
Related Questions in AZURE-IOT-CENTRAL
- Collecting data on device and send it once a day to IoT Central but keeping timestamp from collected data
- IoT Central - How to Generate API token programatically
- Connecting Arduino uno rev2 with IoT central application
- Updating a writable property in IOT Central via mqtt from device
- Looking for azure IoT connected factory demo
- Directly connect to Azure IoT Edge via MQTT as transparent gateway to Azure IoT Central
- IOT Central Offline Messaging
- DeviceClient error when it calls method open
- IOT Central - Reported properties issue
- Error CS1061 'DeviceClient' does not contain a definition for 'SetInputMessageHandlerAsync'
- KepServerEx connection to Azure IoT Central
- IoT Hub Device Provisioning Service (DPS) for Azure IoT Central (SaaS)
- Azure IOT Central Complex Rules
- How to update/edit IoT Central Cloud Property in IoT Central Application V3?
- What is the correct JSON format to report "DateTime" property to IoT Central?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
So, I figured it out. In order for Offline command to work, have to set "clean start" bit to 0 in the MQTT CONNECT Packet. It need to be a persistent-session.