|
2,15 |
2,11 |
|
%smdncms%(set-metadata,full-title,Smdn.TPSmartHomeDevices)
|
%smdncms%(set-metadata,full-title,Smdn.TPSmartHomeDevices)
|
|
%smdncms%(set-metadata,keywords,Smdn.TPSmartHomeDevices,C#,ライブラリ)
|
%smdncms%(set-metadata,keywords,Smdn.TPSmartHomeDevices,C#,ライブラリ)
|
|
|
|
~ |
[[Smdn.TPSmartHomeDevices:https://github.com/smdn/Smdn.TPSmartHomeDevices/]]は、TP-Link製スマートホーム製品を操作するためのライブラリです。 マルチカラースマートLEDランプ[[L530:https://www.tp-link.com/jp/home-networking/smart-bulb/tapo-l530e/]]や、スマートWi-Fiプラグ[[P110M:https://www.tp-link.com/jp/smart-home/tapo/tapo-p110m/]]などに対して、デバイスのオン・オフ、状態の設定・取得などの操作を、.NETコードから行うことができます。
|
[[Smdn.TPSmartHomeDevices:https://github.com/smdn/Smdn.TPSmartHomeDevices/]]は、TP-Link製スマートホーム製品を操作するためのライブラリです。 マルチカラースマートLEDランプ[[L530:https://www.tp-link.com/jp/home-networking/smart-bulb/tapo-l530e/]]や、スマートWi-Fiプラグ[[P105:https://www.tp-link.com/jp/smart-home/tapo/tapo-p105/]]などに対して、デバイスのオン・オフ、状態の設定・取得などの操作を、.NETコードから行うことができます。
|
|
|
|
~ |
本ライブラリでは接続とセッションの管理、自動的な再接続、および典型的なエラーへの対処やリトライ処理を組み込んでいるため、多くの場合でデバイスへの要求を行うコードの記述のみに注力できます。 また、MACアドレスでのデバイスへの接続にも対応しているので、DHCP環境での使用にも対応できます。 バージョン2.0.0以降では、2023年夏以降に導入された新しいファームウェアにも対応しています。
|
本ライブラリでは接続とセッションの管理、自動的な再接続、および典型的なエラーへの対処やリトライ処理を組み込んでいるため、多くの場合でデバイスへの要求を行うコードの記述のみに注力できます。 また、MACアドレスでのデバイスへの接続にも対応しているので、DHCP環境での使用にも対応できます。
|
|
|
|
~ |
[[Smdn.TPSmartHomeDevices.Tapo:https://www.nuget.org/packages/Smdn.TPSmartHomeDevices.Tapo]] is released under the [[GPLv3:https://github.com/smdn/Smdn.TPSmartHomeDevices/blob/main/src/Smdn.TPSmartHomeDevices.Tapo/COPYING.txt]]. [[Smdn.TPSmartHomeDevices.Tapo:https://www.nuget.org/packages/Smdn.TPSmartHomeDevices.Tapo]]は[[GPLv3:https://github.com/smdn/Smdn.TPSmartHomeDevices/blob/main/src/Smdn.TPSmartHomeDevices.Tapo/COPYING.txt]]でリリースされています。
|
This software is released under the [[MIT License:https://github.com/smdn/Smdn.TPSmartHomeDevices/blob/main/LICENSE.txt]]. 本ライブラリは[[MITライセンス:https://github.com/smdn/Smdn.TPSmartHomeDevices/blob/main/LICENSE.txt]]でリリースされています。
|
+ |
|
|
+ |
[[Smdn.TPSmartHomeDevices.Kasa:https://www.nuget.org/packages/Smdn.TPSmartHomeDevices.Kasa]] is released under the [[MIT License:https://github.com/smdn/Smdn.TPSmartHomeDevices/blob/main/src/LICENSE.txt]]. [[Smdn.TPSmartHomeDevices.Kasa:https://www.nuget.org/packages/Smdn.TPSmartHomeDevices.Kasa]]は[[MITライセンス:https://github.com/smdn/Smdn.TPSmartHomeDevices/blob/main/src/LICENSE.txt]]でリリースされています。
|
|
+ |
|
|
+ |
ライセンスについての詳細は、GitHubリポジトリの[[License:https://github.com/smdn/Smdn.TPSmartHomeDevices#license]]のセクションをご覧ください。
|
|
|
|
|
|
$remarks
|
$remarks
|
|
本プロジェクトは、TP-Linkとは無関係の非公式なものです。
|
本プロジェクトは、TP-Linkとは無関係の非公式なものです。
|
|
44,7 |
40,7 |
|
|
|
|
// マルチカラースマートLEDランプ・L530を操作するためのデバイスコントローラを作成します
|
// マルチカラースマートLEDランプ・L530を操作するためのデバイスコントローラを作成します
|
|
// デバイスのIPアドレス、Tapoアカウントのメールアドレス・パスワードを指定してください
|
// デバイスのIPアドレス、Tapoアカウントのメールアドレス・パスワードを指定してください
|
~ |
using var bulb = new L530("192.0.2.1", "user@mail.test", "password");
|
using var bulb = new L530("192.0.2.255", "user@mail.test", "password");
|
|
|
|
|
// L530をオンにし、色温度および明るさを設定します
|
// L530をオンにし、色温度および明るさを設定します
|
|
await bulb.SetColorTemperatureAsync(colorTemperature: 5500, brightness: 80);
|
await bulb.SetColorTemperatureAsync(colorTemperature: 5500, brightness: 80);
|