我正在研究监视解决方案的概念证明,并且能够使用Gateway(Kepserverex)> IoT中心> Power BI模型查看我的数据。该解决方案有效,但不可扩展,因此我开始研究Azure IoT Central,因为它提供了开箱即用的监视解决方案,但是我一直在努力如何将Kepserverex和IoT Central连接在一起。我可以使用MQTT或REST进行连接。
有人对如何实现这一目标有任何见识吗?谢谢您的宝贵时间!
答案 0 :(得分:0)
与将其连接到iothub相同。只需简单地获取设备的Set rngTest = i
,Option Explicit
Sub Tester()
Dim testRng As Range, i As Range
Dim usrInputA As String
Dim LR as Long
usrInputA = InputBox("Col 1 Criteria: ")
LR = Range("A" & Rows.Count).End(xlUp).Row
For Each i In Range("A2:A" & LR)
If InStr(i, usrInputA) Then
If Not testRng Is Nothing Then
Set testRng = Union(testRng, i)
Else
Set testRng = i
End If
End If
Next i
If Not testRng is Nothing Then
'Do what with testRng?
End If
End Sub
和scopeId
(从右上方的设备浏览器页面-名为device Id
的按钮)