![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
sfs
Dependencies: EthernetInterface mbed-rtos mbed
main.cpp@5:83fa43f0ea2d, 2016-12-09 (annotated)
- Committer:
- grzemich
- Date:
- Fri Dec 09 07:00:31 2016 +0000
- Revision:
- 5:83fa43f0ea2d
- Parent:
- 4:39d4e34e26ae
gvjs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
grzemich | 0:8864e30d7121 | 1 | #include "mbed.h" |
grzemich | 0:8864e30d7121 | 2 | #include "EthernetInterface.h" |
grzemich | 3:150e1413e660 | 3 | |
grzemich | 0:8864e30d7121 | 4 | |
grzemich | 3:150e1413e660 | 5 | int main() { |
grzemich | 0:8864e30d7121 | 6 | EthernetInterface eth; |
grzemich | 5:83fa43f0ea2d | 7 | eth.init(); |
grzemich | 0:8864e30d7121 | 8 | eth.connect(); |
grzemich | 0:8864e30d7121 | 9 | printf("IP Address is %s\n", eth.getIPAddress()); |
grzemich | 3:150e1413e660 | 10 | eth.disconnect(); |
grzemich | 3:150e1413e660 | 11 | } |