Splattering is not the best choice here. Where did you insert the statement? Inside the while loop?
Well, I didn’t put millions of ethernet.maintain statements in it. I moved them from place to place. I had one located on the outside of the client connected loop and i tried having them inside the while(webfile.available()) loop, before it, after it, and inside the client loop. Nothing seemed to help.
When it “freezes” heres what the debug client shows.
UIPClient.write: writePacket(1) pos: 44, buf[0-1]: 'M'
UIPClient.write: writePacket(1) pos: 45, buf[0-1]: 'I'
UIPClient.write: writePacket(1) pos: 46, buf[0-1]: ''
UIPClient.write: writePacket(1) pos: 47, buf[0-1]: 'ã'
UIPClient.write: writePacket(1) pos: 48, buf[0-1]: 'w'
UIPClient.write: writePacket(1) pos: 49, buf[0-1]: ''
UIPClient.write: writePacket(1) pos: 50, buf[0-1]: '¶'
UIPClient.write: writePacket(1) pos: 51, buf[0-1]: 'ì' <--- most all stop at 51
UIPClient.write: writePacket(2) pos: 0, buf[0-1]: 'ì'
UIPClient.write: writePacket(2) pos: 1, buf[0-1]: 'y'
UIPClient.write: writePacket(2) pos: 2, buf[0-1]: 'ï'
UIPClient.write: writePacket(2) pos: 3, buf[0-1]: ','
UIPClient.write: writePacket(2) pos: 4, buf[0-1]: 'Ø'
UIPClient.write: writePacket(2) pos: 5, buf[0-1]: 'æ'
UIPClient.write: writePacket(2) pos: 6, buf[0-1]: ','
UIPClient.write: writePacket(2) pos: 7, buf[0-1]: '£'
.......(continues this).....
UIPClient.write: writePacket(2) pos: 498, buf[0-1]: ''
UIPClient.write: writePacket(2) pos: 499, buf[0-1]: 'J'
UIPClient.write: writePacket(2) pos: 500, buf[0-1]: '¨'
UIPClient.write: writePacket(2) pos: 501, buf[0-1]: '('
UIPClient.write: writePacket(2) pos: 502, buf[0-1]: '+'
UIPClient.write: writePacket(2) pos: 503, buf[0-1]: 'Ä'
UIPClient.write: writePacket(2) pos: 504, buf[0-1]: '^'
UIPClient.write: writePacket(2) pos: 505, buf[0-1]: 'É'
UIPClient.write: writePacket(2) pos: 506, buf[0-1]: 'û'
UIPClient.write: writePacket(2) pos: 507, buf[0-1]: 'î'
UIPClient.write: writePacket(2) pos: 508, buf[0-1]: '²'
UIPClient.write: writePacket(2) pos: 509, buf[0-1]: 'ï'
UIPClient.write: writePacket(2) pos: 510, buf[0-1]: 'Ü'
UIPClient.write: writePacket(2) pos: 511, buf[0-1]: 'å'
UIPClient.write: writePacket(2) pos: 512, buf[0-1]: '´'
UIPClient.write: writePacket(3) pos: 0, buf[0-1]: '´'
UIPClient.write: writePacket(3) pos: 1, buf[0-1]: '{'
UIPClient.write: writePacket(3) pos: 2, buf[0-1]: 'e'
UIPClient.write: writePacket(3) pos: 3, buf[0-1]: 'n'
UIPClient.write: writePacket(3) pos: 4, buf[0-1]: 'y'
UIPClient.write: writePacket(3) pos: 5, buf[0-1]: '¢'
UIPClient.write: writePacket(3) pos: 6, buf[0-1]: 'Ì'
UIPClient.write: writePacket(3) pos: 7, buf[0-1]: '¾'
.......(repeats for 3 and 4).......
UIPClient.write: writePacket(4) pos: 507, buf[0-1]: '8'
UIPClient.write: writePacket(4) pos: 508, buf[0-1]: '¸'
UIPClient.write: writePacket(4) pos: 509, buf[0-1]: ''
UIPClient.write: writePacket(4) pos: 510, buf[0-1]: ''
UIPClient.write: writePacket(4) pos: 511, buf[0-1]: '±'
UIPClient.write: writePacket(4) pos: 512, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 0, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 1, buf[0-1]: '«'
UIPClient.write: writePacket(5) pos: 2, buf[0-1]: 'Ó'
UIPClient.write: writePacket(5) pos: 3, buf[0-1]: 'Ú'
UIPClient.write: writePacket(5) pos: 4, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 5, buf[0-1]: 'Ó'
......(continues this).......
UIPClient.write: writePacket(5) pos: 504, buf[0-1]: 'Ý'
UIPClient.write: writePacket(5) pos: 505, buf[0-1]: '²'
UIPClient.write: writePacket(5) pos: 506, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 507, buf[0-1]: '¤'
UIPClient.write: writePacket(5) pos: 508, buf[0-1]: 'Õ'
UIPClient.write: writePacket(5) pos: 509, buf[0-1]: '^'
UIPClient.write: writePacket(5) pos: 510, buf[0-1]: '.'
UIPClient.write: writePacket(5) pos: 511, buf[0-1]: 'õ'
UIPClient.write: writePacket(5) pos: 512, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 512, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 512, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 512, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 512, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 512, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 512, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 512, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 512, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 512, buf[0-1]: ''
UIPClient.write: writePacket(5) pos: 512, buf[0-1]: ''
I’m new to the ethernet/internet side of programming so I don’t really know what this indicates other than its obviously having issues somewhere lol. Most of the packets that are sent stop at 51. Once it gets to 512 on packet(5) it just repeats the same thing.
Did you rename the UIPEthernet to Ethernet?
I’m using the UIPEthernet library. Yes i deleted the include for <SPI.h> and i renamed Ethernet.h to UIPEthernet.h
Try to adapt the software to use the UIPEthernet class and don’t rename the library because that may cause problems that are not apparent.
The UIPEthernet library doesn’t provide any examples for creating a web server that can be opened in a webpage. I’m assuming this is because it was supposed to be a drop in replacement for the ethernet library. I don’t know what would be different as everything I’ve googled uses things similar to the Ethernet library.