azure-iot-sdk - Azure Sphere MT3620 稍后重试以发送到 IoT 中心
问题描述
如果连接丢失,尝试查找有关在 Azure Sphere MT3620 设备上存储本地信息的任何信息。某种故障恢复存储以供以后重试?
例子
Try to send a timestamp that the button was press to Azure IoT Hub
Connection failed due to the wifi router was unplugged.
Save that event to some type of on non-volatile storage.
When the chip does comes online the ship send all of the data that it was unable to send when it was offline.
读到芯片有两个核心,是否可以设置一个记录,另一个在失败时发送,这样核心就不会阻塞 io 事件?
解决方案
您可以使用 Azure Sphere 的可变存储类型。可变存储存储设备重新启动时持续存在的数据。看这里怎么做。
[编辑] Azure Sphere 19.05 版本解锁了驻留在 MT3620 (ARM Cortex-M4F) 上的实时内核。操作系统和 SDK 支持在 MT3620 的两个 M4 内核上开发、部署和调试 SPI、I2C、GPIO、UART 和 ADC 实时应用程序。
推荐阅读
- c++ - Direct X:如何显示加载到纹理中的图像?
- android - 在 app:processDebugManifest 期间 React Native 崩溃
- javascript - 如何让 VSCode 智能感知识别 Javascript 中的多态函数?
- vue.js - 使用 v-if 在标头中使用不同的路由链接会导致路由到错误的路径
- vb.net - 使用 OpenDoc6 打开绘图文档
- ruby-on-rails - 更改数据库中的输入
- javascript - 如何根据用户选择的 HTML 选项更改选择的背景颜色?
- python - 从输入字符串中检测最后一部分的函数
- botframework - 虚拟助手测试项目说明
- node.js - 新建react app项目有12969个漏洞