Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Connection closed. lwip_read failes with -1 #28

Open
twischer opened this issue Mar 29, 2017 · 0 comments
Open

Connection closed. lwip_read failes with -1 #28

twischer opened this issue Mar 29, 2017 · 0 comments

Comments

@twischer
Copy link

After reopening the first write to the socket blocks endless
write(sock, "GET ", 4);

The log file is attached
log.txt

I changed the following parts in the configuration:

diff --git a/mp3/user/playerconfig.h b/mp3/user/playerconfig.h
index 24339af..1974c8b 100644
--- a/mp3/user/playerconfig.h
+++ b/mp3/user/playerconfig.h
@@ -4,13 +4,13 @@
 /*
 Define the access point name and its password here.
 */
-#define AP_NAME "testjmd"
-#define AP_PASS "pannenkoek"
+#define AP_NAME "Baumschule"
+#define AP_PASS "blabla"
 
 /* Define stream URL here. For example, the URL to the MP3 stream of a certain Dutch radio station
 is http://icecast.omroep.nl/3fm-sb-mp3 . This translates of a server name of "icecast.omroep.nl"
 and a path of "/3fm-sb-mp3". The port usually is 80 (the standard HTTP port) */
-#if 0
+#if 1
 #define PLAY_SERVER "icecast.omroep.nl"
 #define PLAY_PATH "/3fm-sb-mp3"
 #define PLAY_PORT 80
@@ -26,12 +26,18 @@ Here's a DI.fm stream
 
 /* You can use something like this to connect to a local mpd server which has a configured 
 mp3 output: */
-#if 1
+#if 0
 #define PLAY_SERVER "192.168.33.128"
 #define PLAY_PATH "/"
 #define PLAY_PORT 8000
 #endif
 
+#if 0
+#define PLAY_SERVER "192.168.178.23"
+#define PLAY_PATH "/pc.mp3"
+#define PLAY_PORT 8888
+#endif
+
 /* You can also play a non-streaming mp3 file that's hosted somewhere. WARNING: If you do this,
 make sure to comment out the ADD_DEL_SAMPLES define below, or you'll get too fast a playback 
 rate! */
@@ -102,7 +108,7 @@ this if you don't have a 23LC1024 chip connected to the ESP but still want to tr
 the MP3 decoder. Be warned, if your network isn't 100% quiet and latency-free and/or
 the server isn't very close to your ESP, this _will_ lead to stutters in the played 
 MP3 stream! */
-//#define FAKE_SPI_BUFF
+#define FAKE_SPI_BUFF
 
 
-#endif
\ No newline at end of file
+#endif
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant