Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 2.32 KB

README.md

File metadata and controls

48 lines (37 loc) · 2.32 KB

wakaama-mbed-application-board

This is an example of Wakaama on mbed LPC1768 with application board.

alt text alt text

Wakaama is used to make the mbed LPC1768, lightweight M2M capable.

RGB Led, accelerometer and temperature sensor is mapped on IPSO Smart Objects.

Features

The LCD screen shows times and temperature. You can use joystick to switch on/off the light (left:on, right:off)

  • You can write/read/observe time via Lwm2m Device object (3).
  • You can switch on/off the light (write/read/observe) or choose the color (read/write) via Light Control object (3311).
  • You can read/observe temperature via Temperature Sensor object (3303).
  • You can read/observe 1-3 axis position via Accelerometer Sensor object (3313).

Compile and try it

To compile it you need the ARM GNU toolschains, GCC ARM Embedded can be installed freely using instructions found here.

Then run the classic :

make

by default the device will try to connect to the leshan sandbox with the client endpont name lcp1768 You could change the endpoint name and the server target with make variables :

make clean
make ENDPOINT_NAME=mydevice SERVER_URI=coap://10.0.0.1:5683

To compile in debug mode and get some logs on serial port :

make clean
make DEBUG=1

You could also change ethernet timeout for each loop with LOOP_TIMEOUT, the default is 1000ms :

make clean
make LOOP_TIMEOUT=200