![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
AP mode
Dependencies: NetworkSocketAPI WizFi310Interface mbed
Fork of WizFi310_TCP_Echo_Server_Example by
Diff: detect.cpp
- Revision:
- 5:e313e52adcaf
- Parent:
- 3:4b4eb90875bd
--- a/detect.cpp Mon Oct 02 21:49:51 2017 +0000 +++ b/detect.cpp Mon Oct 02 22:02:47 2017 +0000 @@ -3,6 +3,7 @@ #include "tts.h" #include "push.h" + I2C m_i2c(PA_10 , PA_09); Timer m_timer; @@ -13,7 +14,7 @@ USBTX, USBRX); -void detecting(VS1053 *player, TCPSocket *socket, char* buf, char* id) +void detecting(VS1053 *player, TCPSocket *socket, char* buf, char* id, ShiftRegisterControlClass led) { while(1) { while(1) { @@ -33,7 +34,7 @@ detect.init(); printf("detect!\n"); - recvInfo(socket, buf, id); + recvInfo(socket, buf, id, led); playTTS(player, socket, buf); requestNoti(socket, id, buf); }