我想使用Stream Analytics将数据从IoT中心传输到Azure SQL数据库和存储表。我编写输入,输出功能。当一台Iot设备使用流分析作业与azure iot-hub连接并将数据存储在sql表中,但是当我们连接多台Iot设备与Azure Iot-Hub连接时。
我们面临两个问题:
一段时间后,一台物联网设备与azure iot-hub断开连接,直到重新启动脚本或设备后才重新连接
在Stream Analytics作业活动日志中显示发送事件错误表示具有特定输出的数据转换。
我的查询是:
SELECT
CompanyProfileId, JunctionListId, MonitoringString, area_id
INTO
MonitoringOutput
FROM
MonitoringInput
WHERE
MonitoringString IS NOT NULL
AND CompanyProfileId IS NOT NULL
SELECT
JunctionListId, F1_Sec, F2_Sec, F3_Sec, F4_Sec, F5_Sec,
F6_Sec, F7_Sec, F8_Sec, F9_Sec, F10_Sec, DateAdded
INTO
GreenTimeOutput
FROM
GreenTimeInput
WHERE
JunctionListId IS NOT NULL
AND F1_Sec IS NOT NULL
AND F2_Sec IS NOT NULL
AND DateAdded IS NOT NULL
SELECT
JunctionListId, F1_Vehicle, F2_Vehicle, F3_Vehicle, F4_Vehicle,
F5_Vehicle, F6_Vehicle, F7_Vehicle, F8_Vehicle, F9_Vehicle,
F10_Vehicle, DateAdded
INTO
VehicleCountOutput
FROM
VehicleCountInput
WHERE
JunctionListId IS NOT NULL
AND F1_Vehicle IS NOT NULL
AND F2_Vehicle IS NOT NULL
AND DateAdded IS NOT NULL
请给我任何解决方案,我需要做什么?