跳转到主要内容

一个用于通过内置REST服务器与Azure Sphere设备交互的库。

项目描述

Microsoft Azure Sphere Device REST APIs for Python

Microsoft Azure Sphere Device REST APIs for Python允许用户通过REST API与Azure Sphere设备交互。

安装

您可以在PyPi上找到Microsoft Azure Sphere Device REST APIs for Python。

  1. 如果您尚未安装,请安装和/或升级您的Python环境中的pip到最新版本。
  2. 运行pip install azuresphere_device_api

用法

在开始使用适用于Python的Microsoft Azure Sphere Device REST API之前,您必须安装Azure Sphere SDK。

示例

display_ip_deviceid示例获取已连接设备的列表,显示设备IP地址和设备ID。

活动设备IP地址

默认情况下,此包将针对IP地址为192.168.35.2的Azure Sphere设备。要更改活动Azure Sphere设备,请调用以下API中的set_active_device_ip_address

from azuresphere_device_api import devices
devices.set_active_device_ip_address("<Device_Ip_Address")

文档

适用于Python的Microsoft Azure Sphere Device REST API的文档可在Azure Sphere Device REST API文档中找到。

支持的主机操作系统

  • Windows 10和11
  • Ubuntu 18.04、20.04、22.04

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

azuresphere-device-api-1.1.1.tar.gz (17.9 kB 查看哈希)

上传时间

构建分布

azuresphere_device_api-1.1.1-py3-none-any.whl (24.0 kB 查看哈希)

上传时间 Python 3

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面