Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    David Márquez Fàbrega
    @DavidMarquezF
    okay, thanks!
    Jozef Kralik
    @jkralik
    @DavidMarquezF From logs I see that the device b4fead3a-72af-4043-56e8-90590de03c92 doesn't send response for the PING requests. So cloud close connection. After that device reconnects again to the cloud and then cloud start obsere all resources of the device. This is why you see lot's of GET requests.
    David Márquez Fàbrega
    @DavidMarquezF
    Thanks for the info! I'll use the plgd branch and see if it still happens. If it still does I'll try to investigate further what's happening
    David Márquez Fàbrega
    @DavidMarquezF
    I digged a bit deeper into it (I'm still not done) but I wanted to share what i found. Apparently I don't get a call from the server each second, it's the device that has the internal periodic observation setup. When the device is initialized oc_ri_invoke_coap_entity_handler is called for each resource (as you pointed out). However, since these resources are set up as periodic observables (every second), iotivity polls internally every second the resources. These send their info to the cloud.
    I tried using wireshark to debug the connections (I set up a local docker as explained in https://plgd.dev/guide/getting-started/1-deploy.html#bundle) but I can't seem to make it decrypt the connection with the private key. However, I tried setting some debug points and it does look like it responds with a PONG.
    David Márquez Fàbrega
    @DavidMarquezF
    If I remove the periodic observation every second from the resources this won't happen. But then I'm curious as how you would be able to set a periodically observable resource in the cloud conditionally (let the user decide if the resource should be updated every second or not), with the notification switch in the web UI for example.
    Jozef Kralik
    @jkralik
    @DavidMarquezF For cloud it is expected that all resources are observable. It means when any change occurs on any property of any resource, devices sends a notification to the cloud with that resource. You can trigger it via oc_notify_observers(). Pulling mechanism is inefficiency so we don't want to support it.
    David Márquez Fàbrega
    @DavidMarquezF
    Okay, it makes sense, thank you @jkralik !
    Wouter
    @WAvdBeek
    Hi Ondrej, Jozef.
    Ondrej Tomcik
    @ondrejtomcik
    @WAvdBeek Hello
    Wouter
    @WAvdBeek
    I had to make a change to IoTivity, there was a compiling error, please take a look at iotivity/iotivity-lite#34 and make a better fix that actually compiles
    Ondrej Tomcik
    @ondrejtomcik
    Were you in hurry? Asking because I see it's already merged :)
    Wouter
    @WAvdBeek
    yeah, otgc is not building due to this issue.
    Wouter
    @WAvdBeek
    hmm, it looks like the fix is gone again, e.g. looking at master in github the change is not there anymore
    I have asked to shut down gitlab asap, because I think it is overwriting github.
    Ondrej Tomcik
    @ondrejtomcik
    Or if you have owner rights on gitlab, you can disable mirror
    nope, only Kishen, VTM and Rami
    @Dr_rami_twitter
    Ondrej Tomcik
    @ondrejtomcik
    Or I can remove access from the account which replicates to the github if you wish
    Wouter
    @WAvdBeek
    if you can do that, please do so.
    Ondrej Tomcik
    @ondrejtomcik
    Done. Not sure if it will work. Can you please try ?
    Commit something to gitlab if it will be mirrored, or vice-versa (if it will be again overwriten by gitlab - lost).
    Wouter
    @WAvdBeek
    i just added something in github (e.g. reinstated the fix) and i can use it now in github/otgc (as intended)
    not sure if gitlab does another sync that it might get lost again..
    Ondrej Tomcik
    @ondrejtomcik
    Ok, let me know if it dissapears. But still, they should properly disable it in the gitlab.
    I just remove account which probably does the sync.
    Wouter
    @WAvdBeek
    I have asked Rami to shutdown gitlab..
    (but he is not awake just yet)
    anyway the first part of building otgc on linux is working again
    and the master is now building correctly, although we need a fix for at link error to reinstate that part of the cloud code
    there is now a CI job on iotivity that checks linux otgc build
    Wouter
    @WAvdBeek
    Josef, can you indicate how to resolve the merge conflict on jakarta?

    <<<<<<< jakarta

    oc_cloud_clear_context(ctx);

    cloud_store_initialize(&ctx->store);
    cloud_manager_stop(ctx);
    ctx->last_error = 0;
    ctx->store.cps = 0;
    cloud_store_dump(&ctx->store);

    master

    Ismail
    @mile.bdo_gitlab
    hi, I'm a newbee and just tried setup this https://plgd.dev/quickstart/deploy-plgd-cloud/ in my aws cloud
    I'm trying open the browser acter run the docker but nothing happen
    really appreciate for the advice. thank you
    Ondrej Tomcik
    @ondrejtomcik

    Josef, can you indicate how to resolve the merge conflict on jakarta?

    Wouter, is this commit from Daniel or Martin Roesch ? Jozef is out until Monday.

    hi, I'm a newbee and just tried setup this https://plgd.dev/quickstart/deploy-plgd-cloud/ in my aws cloud

    Hello. Are you deploying this bundle image in the AWS? Bundle is supposed to be deployed on your local PC. Of course you can deploy it in AWS but then this deployment guidline won’t help you with set up of load balancer and so on. Do you have all your ports open? Can you telnet to 5684 5683 and 443 ?

    1 reply
    Wouter
    @WAvdBeek

    Josef, can you indicate how to resolve the merge conflict on jakarta?

    Wouter, is this commit from Daniel or Martin Roesch ? Jozef is out until Monday.

    I guess it is from Josef, not sure why this is now an issue with merging... we can wait until monday

    Ondrej Tomcik
    @ondrejtomcik
    Ok. Let’s wait until then.
    xiao8xiao1
    @xiao8xiao1
    微信图片_20210625144735.jpg
    when i use otgc, how to config the cloud?
    how to fill the authentication provider, the cloud url , the access token, cloud uuid ? anybody know ? thanks
    Ondrej Tomcik
    @ondrejtomcik
    Hello. I would download plgd onboarding tool from appstore / google play store.
    Do you need to use otgc?
    Jozef Kralik
    @jkralik
    @xiao8xiao1
    do you have plgd/bundle running or do you want to onboard it to the try.plgd.cloud ?
    Jozef Kralik
    @jkralik

    for try.plgd.cloud:

    Authentication Provider: plgd
    Cloud Url: coaps+tcp://try.plgd.cloud:5684
    Access token: you need to get from  https://api.try.plgd.cloud/api/authz/code
    CloudID: adebc667-1f2b-41e3-bf5c-6d6eabc68cc6

    all infromation you can get from https://try.plgd.cloud/.well-known/ocfcloud-configuration

    xiao8xiao1
    @xiao8xiao1
    @ondrejtomcik yes, i need to use otgc, the plgd app can onboard my device to the cloud, but then i can only control device via web, the plgd app can't control device
    xiao8xiao1
    @xiao8xiao1
    0b1763c9b0ef174585f64a0775245c74.jpg
    when i open the otgc cloud configuration again, there is nothing. and i see a info: 'retrive cloud status has failed'