Hey, all! I have been able to issue requests over coaps on Linux now. Nevertheless, the exact same setup fails on Windows and OSX. I have filed https://jira.iotivity.org/browse/IOT-2705 to that effect, but there has been no reaction so far. Are there any plans to make coaps work on Windows? Has it worked for anyone? What about OSX?
Please let me know, and TIA for any information, Gabriel On Thu, Sep 7, 2017 at 10:01 AM, Schulhof, Gabriel <gabriel.schul...@intel.com> wrote: > Hey, all! > > I'm trying to figure out what is needed to talk over coaps. > > I have built iotivity with SECURED=1 RD_MODE=all EXC_PROV_SUPPORT=1. > > I have created a client/server pair in C such that the client performs > a GET request to the server. > > The client directs its request by constructing an absolute URL from > the OCEndpointPayload sent by the server, thus > coap://<address>:<port><resource_path>. This works. > > However, when I try to direct a request at the coaps endpoint > advertised by the server, it hangs and I get OC_STACK_GATEWAY_TIMEOUT. > > The client/server pair can be seen at [0] and downloaded from [1]. > > To build, please edit in the Makefile the value of IOTIVITY_PREFIX to > point to the iotivity repo root on your system and the value of > BIN_PATH to point to out/<platform>/<arch>/<debug|release> as you have > built it. Please build your iotivity with the scons flags I show > above! > > The build also makes use of glib for asynchronicity, so please install > your glib development package if you don't yet have it! > > Please let me know what else I need to do to get requests over coaps to work! > > TIA for your help, > > > > Gabriel > > [0] https://gist.github.com/gabrielschulhof/517b3518353e95a45b08eb21d4315840 > [1] > https://gist.github.com/gabrielschulhof/517b3518353e95a45b08eb21d4315840/archive/9cdc05b0da4715983155c0a9155038a3e41fdb50.tar.gz _______________________________________________ iotivity-dev mailing list iotivity-dev@lists.iotivity.org https://lists.iotivity.org/mailman/listinfo/iotivity-dev