ユーザ用ツール

サイト用ツール


raspi_iot:統合テスト

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン両方とも次のリビジョン
raspi_iot:統合テスト [2019/03/30 16:40] hirohitoraspi_iot:統合テスト [2019/03/30 16:42] – [プログラム全体] hirohito
行 113: 行 113:
 ADRS = 0x5c          # LPS25H ADRS = 0x5c          # LPS25H
 NODE = "/dev/i2c-1"  # I2C device node NODE = "/dev/i2c-1"  # I2C device node
 +POST_URI = "http://192.168.1.11/cgi-bin/index.rb?ctrl=data_post"
  
 def to_int16( b1, b2 ) def to_int16( b1, b2 )
行 150: 行 151:
  
     uri = "http://192.168.1.11/cgi-bin/index.rb?ctrl=data_post"     uri = "http://192.168.1.11/cgi-bin/index.rb?ctrl=data_post"
-    Net::HTTP.post_form(URI.parse(uri),{"data"=>data.to_json})+    Net::HTTP.post_form(URI.parse(POST_URI), {"data"=>data.to_json})
   end   end
 end end
raspi_iot/統合テスト.txt · 最終更新: 2021/07/05 11:15 by hirohito