nguyenquanghai1993 / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

[HABdroid] Make use of URLs more sensible #354

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Conntect to WIFI
2. Install (mercurial-built) habdroid and set local URL
3. Restart habdroid
4. habdroid searches for openhab despite set URL

What is the expected output? What do you see instead?
Use of URLs the followin way:
  - If WIFI-connected:
    - Use local URL if set, fallback to discover, then remote URL
  - If 3G:
    - Always use remote URL

Please use labels and text to provide additional information.
I changed the behavior to match my expectation when setting the URLs in my 
clone here: https://code.google.com/r/hlw31de-habdroid/source/list change 
6f2510d8beb0 and 992ec2689ce3.

I know, reading the current source, habdroid should behave more intelligent but 
testing showed different results.

Original issue reported on code.google.com by hlw31...@gmail.com on 24 Jun 2013 at 10:22

GoogleCodeExporter commented 8 years ago

Original comment by kai.openhab on 24 Jun 2013 at 11:30

GoogleCodeExporter commented 8 years ago
This is fixed in current build. The normal startup sequence is:
If URL is configured, always go with this URL.
Else, on Wi-Fi do discovery, then fallback to remote URL.
Else, on 3G fallback to remote URL.
In demo mode always go to demo.openhab.org.

Original comment by belovic...@gmail.com on 22 Jul 2013 at 6:38