AmbientDataInc / ambient-python-lib

AmbientのPython/MicroPythonライブラリーです。 Ambientにデーターを送信する機能と、Ambientに蓄積されたデーターを読み込む機能があります。
https://ambidata.io
24 stars 8 forks source link

Added timeout argument #1

Closed haya-sann closed 5 years ago

haya-sann commented 5 years ago

To prevent infinitely wait, added timeout parameter in requests.post call. You can call this module like this r = ambi.send({data}, timeout = 5.0) timeout = N can be omit. Default timout value is 5.0 seconds.

haya-sann commented 5 years ago

go with this modification.