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.
Diff: README.md
- Revision:
- 1:dd0e3cc2211a
- Parent:
- 0:b21e585b3aa1
--- a/README.md Tue Apr 10 06:50:09 2018 +0000
+++ b/README.md Tue Apr 10 06:56:01 2018 +0000
@@ -16,9 +16,15 @@
EthernetInterface net;
DigitalOut myled(LED1);
+static int echo(const char *arg, char *buf, size_t len, void *userdata) {
+ snprintf(buf, len, "%s", arg);
+ return 0;
+}
+
int main() {
net.connect();
freshen_net = &net;
+ freshen_core_export(&ctx, "echo", echo, NULL);
while(1) {
const char *ip = net.get_ip_address();