Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 4:9f42e50733be, committed 2019-09-03
- Comitter:
- hudakz
- Date:
- Tue Sep 03 09:58:30 2019 +0000
- Parent:
- 3:9c32e3375fc5
- Child:
- 5:873c7a86fad2
- Commit message:
- Updated to use the latest version of the UIPEthernet library.
Changed in this revision
| UIPEthernet.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/UIPEthernet.lib Sat Aug 31 20:48:02 2019 +0000 +++ b/UIPEthernet.lib Tue Sep 03 09:58:30 2019 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/hudakz/code/UIPEthernet/#95c00132cd98 +https://os.mbed.com/users/hudakz/code/UIPEthernet/#7648334eb41b
--- a/main.cpp Sat Aug 31 20:48:02 2019 +0000
+++ b/main.cpp Tue Sep 03 09:58:30 2019 +0000
@@ -6,6 +6,10 @@
#include "UipEthernet.h"
#include "TcpClient.h"
+#define IP "192.168.1.35"
+#define GATEWAY "192.168.1.1"
+#define NETMASK "255.255.255.0"
+
const uint8_t MAC[6] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05 };
UipEthernet net(MAC, D11, D12, D13, D10); // mac, mosi, miso, sck, cs
@@ -26,6 +30,7 @@
printf("Starting ...\r\n");
+ //net.set_network(IP, NETMASK, GATEWAY); // include this to use static IP address
net.connect();
// Show the network address