![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
sfs
Dependencies: EthernetInterface mbed-rtos mbed
main.cpp@4:39d4e34e26ae, 2016-12-09 (annotated)
- Committer:
- grzemich
- Date:
- Fri Dec 09 06:52:52 2016 +0000
- Revision:
- 4:39d4e34e26ae
- Parent:
- 3:150e1413e660
- Child:
- 5:83fa43f0ea2d
gvs
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 | 3:150e1413e660 | 7 | eth.init(MBED_DEV_IP, MBED_DEV_MASK, MBED_DEV_GW); |
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 | } |