Hello, My task is to create a simple IoTivity example in which a client can send a get request and the server will respond. For example, send a simple get request and the server will respond with a random text message, such as hello world.
Need help regarding the same. Regards, Vishal On Tue, Sep 7, 2021 at 11:59 AM Vishal Rathod via groups.io <vishalrathod= [email protected]> wrote: > Hi, > > I have tried to change LOW_QOS to HIGH_QOS in simpleclient application at > the following places but it did not work. > > oc_do_observe(a_light, light_server, NULL, &observe_light, LOW_QOS, NULL); > oc_init_post(a_light, light_server, NULL, &post2_light, LOW_QOS, NULL) > oc_init_post(a_light, light_server, NULL, &post_light, LOW_QOS, NULL) > oc_init_put(a_light, light_server, NULL, &put_light, LOW_QOS, NULL > oc_do_get(a_light, light_server, NULL, &get_light, LOW_QOS, NULL) > > I think have to change the whole code. Am I right? > > Regards, > Vishal > > On Sat, Sep 4, 2021 at 8:28 PM <[email protected]> wrote: > >> Hi Vishal, >> >> >> >> Please change the code to use HIGH_QOS >> >> >> >> Kind Regards, >> Wouter >> >> >> >> *From:* Vishal Rathod <[email protected]> >> *Sent:* Friday 3 September 2021 17:35 >> *To:* [email protected] >> *Cc:* [email protected] >> *Subject:* Re: [dev] Regarding error while running the example >> >> >> >> Hello, >> >> >> >> I have tried to do the Iotivity experimentation (CoAP) in windows. >> >> >> >> I have followed https://github.com/iotivity/iotivity-lite >> >> >> >> In that, I followed "Onboarding and Provisioning" and was able to run >> the simpleclient and simpleserver example. My doubt is, they are always >> sending NON-type messages. >> >> I want to send CON messages between client and server. Need some guidance. >> >> >> >> Thanks and Regards, >> >> Vishal >> >> >> >> On Wed, Aug 4, 2021 at 2:02 PM <[email protected]> wrote: >> >> Hi Vishal, >> >> >> >> Thanks for letting us know. >> >> Please use device spy as client. OTGC seems to have a bug and we will fix >> it in due course. >> >> >> >> Kind Regards, >> Wouter >> >> >> >> *From:* [email protected] <[email protected]> >> *On Behalf Of *Vishal Rathod via groups.io >> *Sent:* Tuesday 3 August 2021 18:26 >> *To:* [email protected] >> *Subject:* [dev] Regarding error while running the example >> >> >> >> Hello all, >> >> >> >> Sorry I have listed this query in a different thread. >> >> >> >> I was running an example which is given in the URL: >> https://iotivity.org/getting-started-iotivity-device-simulation >> >> >> >> I am able to run the server and when I tried to run the client >> application, I got the error. I have gone through the error, it is saying >> about java error. I have tried with different java installations but it did >> not work for me. The error came when I clicked on the onboard tab after >> selecting the server in otgc client application. >> >> >> >> I have attached the screenshot for the error message as well as the java >> version which I have in my system. >> >> >> >> Is there any solution that helps me to run the example using IoTivity? >> >> >> >> >> >> Thanks and Regards, >> >> -- >> >> Vishal Rathod, >> >> IEEE Student Member, >> >> Research Scholar, >> >> NITK, Surathkal. >> >> M - +91 9879957770 >> >> >> >> >> -- >> >> Vishal Rathod, >> >> IEEE Student Member, >> >> Research Scholar, >> >> NITK, Surathkal. >> >> M - +91 9879957770 >> > > > -- > Vishal Rathod, > IEEE Student Member, > Research Scholar, > NITK, Surathkal. > M - +91 9879957770 > > > -- Vishal Rathod, IEEE Student Member, Research Scholar, NITK, Surathkal. M - +91 9879957770 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#10465): https://iotivity.groups.io/g/iotivity-dev/message/10465 Mute This Topic: https://groups.io/mt/84644051/21656 Group Owner: [email protected] Unsubscribe: https://iotivity.groups.io/g/iotivity-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
