1 Reply Latest reply on Apr 23, 2018 1:54 AM by grsr

    Wiced sdk-6.1 snip.httpbin_org with custom url.

    bansal.gaurav_3126656

      Hi!

      How do I change the snip.httpbin_org example to enable it to access my custom URL?

      Basically, my application involves pushing the GPIO status on my custom webpage on the web server.

      So, I am thinking of making an http put request with the GPIO status on my custom webpage by building-up on this example.

      If there's any other approach that I can consider, I'll be happy to hear from you all.

       

      Thanks.

        • 1. Re: Wiced sdk-6.1 snip.httpbin_org with custom url.
          grsr

          Basically the httpbin snip performs the following operation as per RFC2616 section 5 during HTTP request 0:

           

          GET "/get" HTTP_1_1

          Host: www.httpbin.org

           

           

          You can first start with framing an HTTP request as shown in the notation above. You can then change the server name and URI to the one being used by you. If you are performing HTTPS, you would also need to change the root CA certificate.

           

          Alternately you can use MQTT to publish the GPIO status to a MQTT broker. If you are interested, you can check demo.aws_iot.pub_sub for the same using AWS MQTT broker.

          1 of 1 people found this helpful