Widget: IoTClient

Former Member
Former Member
Please post comments, problems, questions, and feature requests on the IoTClient ConnectIQ Widget in this thread.

https://apps.garmin.com/en-US/apps/da3db127-3938-4dac-bcf1-e30324fd0d20



  • Former Member
    Former Member over 8 years ago
    Sorry

    Hi,

    I'm sorry but sending custom headers like "x-ha-access" is not possible at the moment.
    The only supported auth method currently supported is basic access authentication.


    best
    Stenninger
  • Former Member
    Former Member over 8 years ago
    Acces Denied

    ...if you see a "Access Denied" page while saving the app settings, please try to update the widget!

    This did help in my case!


    removed the widget and reinstalled, 'access denied' keeps popping up unless the url starts with a space (it will not work but you can save it).

    So basically and unfortunately it doesn't work at all on my FR235
  • Former Member
    Former Member over 8 years ago
    The whole app settings logic is a part made by Garmin.
    As a developer, I do not have any influence on this part of the app/widget.

    What I experienced:

    As long as the widget is newly installed or updated, I can safe app settings using my iOS device.
    As soon as I safed app settings using my desktop version of garmin connect once the connection between iOS and the devices app settings (fenix3 in my case) is permanently broken.

    In other words, if I use garmin connect on my win10 desktop once to write app settings, I can not witch to the smartphone app anymore. (because of the access denied bug)
    I have no idea why!
  • Former Member
    Former Member over 8 years ago
    Hi,

    Thank you for the work on this widget:) desperately trying to make it work now.

    My device is controlled through a request like:

    "admin:[email protected]/.../callAction

    I'm running it inside my LAN or through a VPN.

    I copied the settings in the widget and it works. sort of. I mean the device does turn On but then a big IQ with an exclamation mark shows on the screen.

    Any idea what am i doing wrong? My device is a Fenix 5.

    Thank you
  • Former Member
    Former Member over 8 years ago
    Hello Momos,

    I'm a bit puzzled!

    What you are describing sounds like a bad crash of the widget. I'm very sorry about that.

    Because your device is doing something after the request is sent, it must be a problem handling the devices HTTP response.

    I did try your URL as far as I can using the simulator with a fenix5.
    I could not reproduce such a behaviour so far.

    Does anybody out there see crashes like the one descibed above while using IoTClient?

    Did you try to send simpler Request like




    Just to see if the problem still exists?

    Do you use the JParam field? (if not, please check if it is really empty)

    cheers
    Sten
  • Former Member
    Former Member over 8 years ago
    If you dont mind..

    Garmin describes how the device is logging crashes like this one.
    You could help me if you send me the log file. You would have to connect your watch using the USB cable and browse the file system on your whatch.

    [h=2]Handling Crashes
    [/h]Despite the best debugging efforts, crashes will sometimes happen. There are two general types of on-device crash that can occur related to Connect IQ, which each generate log files: app crashes and device crashes.

    [h=3]App Crashes[/h]App crashes typically result in an app quitting unexpectedly or displaying an ‘IQ!’ icon, but does not cause the entire device to crash or reboot. This kind of crash is most commonly due to a bug in an app, though it can also be due to a bug in Connect IQ itself. Whenever an app crash occurs, a CIQ_LOG.txt file is written or updated to /GARMIN/APPS/LOGS on the device, and contains information related to the crash that app developers may use to address the problem.


    I you could send me this file to mail(at)sten-uhlig(dot)de
  • Former Member
    Former Member over 8 years ago
    I tried the shorter commands and they fail with a 400 error.

    I already sent the log by email.

    Thank you :)
  • Former Member
    Former Member over 8 years ago
    Any news please ?
  • Former Member
    Former Member over 8 years ago
    Parsing "?" in http

    Greetings:

    I have an http trigger that is similar to the following
    http://192.168.0.4:84/?flashlight

    I can trigger the device from my smartphone browser, but the IoT widget reports "sending" then "OK" but doesn't trigger switch.

    I saw a different (unanswered) thread on parsing question marks....maybe still an open issue?

    Thanks.
  • Former Member
    Former Member over 8 years ago
    Any news please ?


    @Momos, did you update to v 0.3.4?

    This version has improved exception handling.