Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to increase the URL in COAP in contiki cooja simulator?

Description

To make available uniform resource locator (URL) more in COAP services by using contiki cooja simulator.

Source code

Step 1: er-example-client.c
#define NUMBER_OF_URLS 4 // set maximum urls
Char*service_urls[NUMBER_OF_URLS]={“.well-known/core”, “/actuators/toggle”, “battery/”, “error/in//path”};
#if PLATFORM_HAS_BUTTON
static int uri_switch = 0; // by use increasing this we can access different urls.
#endif

Step 2: Maximum four URLs available We can increase here service urls. for example 5th url is added.
#define NUMBER_OF_URLS 5
Char *service_urls[NUMBER_OF_URLS] = { “.well-known/core”, “/actuators/toggle”, “battery/”, “error/in//path” , “slogix.in/”}