| 297 | |
| 298 | * In case of errors in the compilation process: |
| 299 | {{{ |
| 300 | /gateway$ cd src/ |
| 301 | /gateway/src/$ nano Makefile |
| 302 | |
| 303 | >> Remove local/ from libxml2 path: Change |
| 304 | |
| 305 | INCLUDES = -I/usr/local/include/Sockets -I./plugin-skeleton -I./libBWS -I/usr/local/include/libxml2 |
| 306 | |
| 307 | to |
| 308 | |
| 309 | INCLUDES = -I/usr/local/include/Sockets -I./plugin-skeleton -I./libBWS |
| 310 | -I/usr/include/libxml2 |
| 311 | }}} |
| 312 | |
| 313 | Save Makefile and try to make gateway again |
| 314 | |
| 315 | {{{ |
| 316 | /gateway$ ./bin/sensei-gateway -p 8000 -s sensei-oulu.broker.freenet6.net -d oulu.fi -w island |
| 317 | }}} |
| 318 | |
| 319 | * Last command starts the gateway, keep it running in the terminal. |
| 320 | |
| 321 | Turn on the node(s) that you programmed in Section 3.5. Node sends its resource description after it receives router advertisements. This time depends on radvd.conf settings, usually between 5 and 15 seconds. Gateway prints the resource description when it is received. |
| 322 | |
| 323 | == Test the SENSEI Components over the Web == |
| 324 | |
| 325 | Open a browser; be sure that your browser supports IPv6 address. |
| 326 | |
| 327 | Test the following URL: You can see all the available resources available at this address. [http://sensei-oulu.broker.freenet6.net:8000] |
| 328 | |
| 329 | To access the available resource; use the following address, e.g., |
| 330 | {{{ |
| 331 | http://sensei-oulu.broker.freenet6.net:8000/0212-7400-10c5-51f7/p/rssi |
| 332 | Where, 0212-7400-10c5-51f7 is the EUI-64 address of the node. |
| 333 | }}} |
| 334 | |
| 335 | **p – Parameter resource |
| 336 | **a – Actuator resources |
| 337 | **s – Sensor resources |
| 338 | |
| 339 | |
| 340 | |