PingPong
Dependencies: EthernetInterface_pm mbed-rtos mbed
rede.h@0:c8f056a185d0, 2014-03-27 (annotated)
- Committer:
- rebonatto
- Date:
- Thu Mar 27 17:39:23 2014 +0000
- Revision:
- 0:c8f056a185d0
Para testar a rede.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rebonatto | 0:c8f056a185d0 | 1 | extern EthernetInterface eth; |
rebonatto | 0:c8f056a185d0 | 2 | |
rebonatto | 0:c8f056a185d0 | 3 | void InitializeEthernetLink() |
rebonatto | 0:c8f056a185d0 | 4 | { |
rebonatto | 0:c8f056a185d0 | 5 | eth.init(MEUIP,"255.255.255.0","192.168.1.5"); |
rebonatto | 0:c8f056a185d0 | 6 | |
rebonatto | 0:c8f056a185d0 | 7 | eth.connect(); |
rebonatto | 0:c8f056a185d0 | 8 | printf("IP Address is %s\n", eth.getIPAddress()); |
rebonatto | 0:c8f056a185d0 | 9 | } |