Simple IoT boardと電力計測モジュールINA226PRCを使ったサンプルプログラムです。計測したデータをIFTTTのMakerチャネルに送っています。 サンプリングは0.1秒刻みで、10秒間(100回計測)したら電圧、電流、電力それぞれについて平均、最大値、最小値を計算してIFTTTに送る仕様になっています。

Dependencies:   INA226PRC SimpleIoTBoardLib mbed

Auto generated API documentation and code listings for SITB_INA226PRC

Classes

IFTTT (if this then that)

Code

ifttt.cpp [code]
ifttt.h [code]
main.cpp [code]