Commit Graph
3 Commits
Author SHA1 Message Date
lejeune quentin 7efa4ad92b [FIX] hw_drivers: Fix request to iot-proxy.odoo.com on AP mode
If IoT Box is on access point mode the box try to reach https://iot-proxy.odoo.com
to get pairing code. So the box try while 5 minutes to reach iot-proxy
and send request on network every 10 secondes.

Now we add a condition 'if not access_point()' to send these request.

closes odoo/odoo#57976

X-original-commit: 901dc987c0204a7df2b811bb430f31eabf204fbb
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2020-09-17 16:13:20 +00:00
lejeune quentin efa43fb618 [FIX] hw_drivers: Fix requests to iot-proxy
We make request to iot-proxy.odoo.com every 10 secondes
while 5 minutes.

But we have a traceback if we don't have a internet connection.
So we put a 'try except' to catch error

Related 841c016913a8

closes odoo/odoo#57567

X-original-commit: 3227490e270a1f5b98ef7811edca59e9aa1b6b55
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2020-09-11 15:46:35 +00:00
Antoine Prieels 72681dc53f [IMP] hw_*,point_of_sale: Cleaning IoT Box
- Split driver.py to multiple files
- Remove hw_proxy module as most of its routes were not used and
  move remaingin routes to a controller in hw_drivers
- Add missing coding and license lines at the beginning of files
- Reorder imports and remove unused ones
- Rename device_id to device_identifier for clarity
- Rename screen to display for consistency
- Other minors improvements

Taskid: 1973956
X-original-commit: 841c016913a87133bf7257c62ae5f6bf7d99e06d
2020-08-25 11:24:56 +00:00