communicatuion datafield

Former Member
Former Member
Hi,
I wanted to load parameters for my datafield.
In settings, this is almost possible, but I have 2 problems :
1/It use à lot of memory, but this is not the Subject of this topic.
My problem is :
2/ I wanted to ask my webservice that will load the parameters, but as in settings: just load for GC App synchronisation.

In the module communications, from what I underground, it seems to be possible only for applications and widget.

Thanks for your help.

Rgds,
  • Correct. You can only do comm from widgets and watch apps. You can't use comm from watchfaces or data fields.
  • Former Member
    Former Member over 8 years ago
    Ok,
    What a pitty...this was just for loading...
    This is a good idea for the new sdk :)
  • Ok,
    What a pitty...this was just for loading...
    This is a good idea for the new sdk :)


    It's all about the memory. There is simply not enough memory in a 16k DF to do comm. Using app settings is FAR cheaper memory wise, and if you are having memory issues, it's best to look at the other code in your DF. 16k isn't that much, and you may be able to cut some usage based on the data you save, and even if you you use layouts or dc calls.
  • Former Member
    Former Member over 8 years ago
    This is true.
    Otherwise, I'll maybe launch an another thread for it, but does it exist a JSON parser in connect iq ? Without using the Communication that is for app and widget.
    I wanted to manually enter my Json result in the settings, and parse it.
    Thanks
  • Nope. There is no JSON parser available to ConnectIQ.
  • Former Member
    Former Member over 8 years ago
    OK,
    I find the solution finally : I'll parse my json in php directly and convert it to a string separated with a token and use the split method you show me.
    Thanks,