Microsoft Teams Bot for Azure IoT中心设备. [英] Microsoft Teams Bot for Azure IoT Hub Device.

查看:112
本文介绍了Microsoft Teams Bot for Azure IoT中心设备.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这应该如何设计???
 目标:我们希望Microsoft Teams Bot通过Azure IoT中心向/从连接的设备发送/接收命令

   示例:
      (用户)打开我们刚刚获得了巨大的销售"轻.
         (启动) 多久了?
      (用户)10分钟.
         (Bot)好吧,把灯打开10分钟.
      (用户)办公室的温度是多少?
         (我)测量

 假设任务已完成:
     销售灯已连接到IoT设备
      IoT设备已连接到Azure IoT中心
     物联网设备将温度发送到Azure物联网中心
      IoT设备使用<< Light_ON>> IoT中心发出的消息
      

下一步是什么?
   机器人如何与Azure连接并进行身份验证
   如何控制用户权限? (谁可以控制灯光)
   
感谢您的指导. 

解决方案

Hello MvngTrgt,

欢迎来到Azure IoT中心论坛.

从Azure IoT中心一侧,连接到IoT中心的设备可以发送D2C消息和接收C2D消息,并且可以在 直接方法就像开灯一样.

接收D2C消息,您可以通过内置终结点(消息/事件),也可以将这些消息路由到 自定义终结点:事件中心,服务总线主题,服务总线队列和Azure存储容器.

发送C2D消息到设备,您可以使用 Azure IoT中心服务SDK REST API .

对于Microsoft Teams Bot,我不是专家,如何与Azure IoT中心(或通过第三项服务)/所需的设备通信,请与Microsoft Teams支持联系.可能是 这个网站.

最诚挚的问候,

Rita


How should this be architected???
   Goal: We want a Microsoft Teams Bot to send/receive commands through a Azure IoT Hub to/from connected device

   Example:
      (User) turn on the "we just got a huge sale" light.
         (Bot)  for how long?
      (User) 10 min.
         (Bot) Okay, turning the light ON for 10 min.
      (User) what is the temperature in the office
         (Bot) I measure 

   Assume Task completed: 
      Sale light is connected to IoT device
      IoT device connected to Azure IoT Hub
      IoT device sends temp to Azure IoT hub
      IoT device Turns light on with <<Light_ON>> message from IoT Hub
      

What is next?
   How does the bot connect and Authenticate with Azure
   How are user privileges controlled? (who can control the light)
   
Thanks for the guidance. 

解决方案

Hello MvngTrgt,

Welcome to Azure IoT Hub forum.

From Azure IoT Hub side, a device connected to IoT Hub can send D2C message and receive C2D message and can react on a direct method like turn on light.

To receive D2C messages you can via build-in endpoint(messages/events) or you can route these message to custom endpoints: Event Hub, Service Bus Topic, Service Bus Queue and Azure Storage Container.

To send C2D message to device you can use Azure IoT Hub Service SDK or REST API.

As for Microsoft Teams Bot, I am not an expert, how to communicate with Azure IoT Hub(or via the third service) /devices you need contact Microsoft Teams support. Maybe this site

Best regards,

Rita


这篇关于Microsoft Teams Bot for Azure IoT中心设备.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆