Simple SNMP v1 example based on Agentbed and compatible with the official networking stack
Dependencies: Agentbed2 EthernetInterface mbed-rtos mbed
main.cpp@0:469a3d78c284, 2013-04-02 (annotated)
- Committer:
- jonecm
- Date:
- Tue Apr 02 20:02:14 2013 +0000
- Revision:
- 0:469a3d78c284
Simple SNMP V1 UDP Example based on Agentbed, updated for use with the latest official MBED Networking stack
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jonecm | 0:469a3d78c284 | 1 | #include "mbed.h" |
jonecm | 0:469a3d78c284 | 2 | |
jonecm | 0:469a3d78c284 | 3 | DigitalOut myled(LED1); |
jonecm | 0:469a3d78c284 | 4 | |
jonecm | 0:469a3d78c284 | 5 | int main() { |
jonecm | 0:469a3d78c284 | 6 | while(1) { |
jonecm | 0:469a3d78c284 | 7 | myled = 1; |
jonecm | 0:469a3d78c284 | 8 | wait(0.2); |
jonecm | 0:469a3d78c284 | 9 | myled = 0; |
jonecm | 0:469a3d78c284 | 10 | wait(0.2); |
jonecm | 0:469a3d78c284 | 11 | } |
jonecm | 0:469a3d78c284 | 12 | } |