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.
Dependencies: SoftSerial SDFileSystem mbed wave_player
Diff: main.cpp
- Revision:
- 26:1c8a7d0bb4b7
- Parent:
- 24:d91e9b3b5bd5
- Child:
- 27:6dbcad451cbc
--- a/main.cpp Tue May 16 22:49:52 2017 +0000
+++ b/main.cpp Wed May 17 01:47:04 2017 +0200
@@ -6,6 +6,7 @@
#include "SDFileSystem.h"
#include "wave_player.h"
#include "Relay.h"
+#include "Client.h"
void test_player(){
@@ -17,11 +18,11 @@
waver.set_verbosity(0);
sd.disk_initialize();
FILE *wave_file;
+ printf("Hello, wave world!\n");
+ wave_file=fopen("/sd/test.wav","r");
if(wave_file == NULL) {
error("Could not open file for write\n");
}
- printf("Hello, wave world!\n");
- wave_file=fopen("/sd/test.wav","r");
waver.play(wave_file);
fclose(wave_file);
}
@@ -58,7 +59,7 @@
}
}
-#define RELAY 1
+#define RELAY 0
int main(){
@@ -69,7 +70,8 @@
relay.run();
//test_relay();
} else {
- printf("client\r\n");
- test_client();
+ Client client(p17,20000);
+ client.run();
+ //test_client();
}
}
\ No newline at end of file