Test of tinydtls over cellular
Dependencies: VodafoneUSBModem mbed-rtos mbed tinydtls
main.cpp@0:6ae42a2aff75, 2013-10-09 (annotated)
- Committer:
- ashleymills
- Date:
- Wed Oct 09 14:48:52 2013 +0000
- Revision:
- 0:6ae42a2aff75
- Child:
- 1:1dd9b8218515
Test program for mbed port of tinydtls
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ashleymills | 0:6ae42a2aff75 | 1 | #include "mbed.h" |
ashleymills | 0:6ae42a2aff75 | 2 | #include "rtos.h" |
ashleymills | 0:6ae42a2aff75 | 3 | #include "VodafoneUSBModem.h" |
ashleymills | 0:6ae42a2aff75 | 4 | #include "bsd_socket.h" |
ashleymills | 0:6ae42a2aff75 | 5 | #include "dtls.h" |
ashleymills | 0:6ae42a2aff75 | 6 | |
ashleymills | 0:6ae42a2aff75 | 7 | DigitalOut myled(LED1); |
ashleymills | 0:6ae42a2aff75 | 8 | |
ashleymills | 0:6ae42a2aff75 | 9 | int main() { |
ashleymills | 0:6ae42a2aff75 | 10 | while(1) { |
ashleymills | 0:6ae42a2aff75 | 11 | myled = 1; |
ashleymills | 0:6ae42a2aff75 | 12 | wait(0.2); |
ashleymills | 0:6ae42a2aff75 | 13 | myled = 0; |
ashleymills | 0:6ae42a2aff75 | 14 | wait(0.2); |
ashleymills | 0:6ae42a2aff75 | 15 | } |
ashleymills | 0:6ae42a2aff75 | 16 | } |