246 | | |
247 | | |
248 | | |
249 | | |
250 | | |
251 | | |
| 246 | ==== /apps/sensei ==== |
| 247 | |
| 248 | If the sensei folder already exists, you can skip the following steps: |
| 249 | 1. Create a directory in /apps/sensei |
| 250 | The sensei directory should contain the following files. |
| 251 | {{{ |
| 252 | Makefile.sensei |
| 253 | actuator.c |
| 254 | actuator.h |
| 255 | parameter.c |
| 256 | parameter.h |
| 257 | rai.c |
| 258 | rai.h |
| 259 | rpi.c |
| 260 | rpi.h |
| 261 | sensor.c |
| 262 | sensor.h |
| 263 | subscription.c |
| 264 | subscription.h |
| 265 | }}} |
| 266 | If there is no Makefile.sensei in the /sensei folder, create a file "Makefile.sensei" in the sensei folder. |
| 267 | |
| 268 | 2. Then into /apps/binaryws/Makefile.sensei file write your source file as follows: |
| 269 | {{{ |
| 270 | sensei_src = rai.c rpi.c actuator.c sensor.c parameter.c subscription.c |
| 271 | }}} |
| 272 | |
| 273 | |
| 274 | == Run the Gateway == |
| 275 | |