Most recent activity
-
-
-
Yes this is as well part of the problem. My close handlers are not getting called if the line starts with \r\n or \r or \n. See here:
var handler = function(d) { var s; if(d === 'OK') { s = sckt; at.registerLine(s + ', CONNECT OK', function() { at.unregister(s + ', CONNECT OK'); socks[s] = true; }); at.registerLine(s + ', CLOSED', function() { at.unregisterLine(s + ', CLOSED'); socks[s] = undefined; }); } }; at.cmd('AT+CIPSTART='+sckt+',"TCP",'+JSON.stringify(host)+','+port+'\r\n', 10000, handler);
This unfortunately happens sometimes, for example a few seconds ago I had the situation:
] "\r\n1, CLOSED\r\n" <--- "\r\n1, CLOSED\r\n"
The close handler has not been called here :(
-
-
Hi Gordon... It is annoying... Again problems with GPRS. When the sim900 is ready for receiving data after AT+CIPSEND it sends:
] "\r\n> "
When I use the following code:
at.register('> ', function() { at.unregister('> '); at.write(data); return ""; });
It removes the "> " from the AT buffer but leaves "\r\n" in it which can cause problems for subsequent requests (maybe for the +RECEIVE handler as well). I tried as well to register for "\r\n> ". That didn't solve that for me. How would you handle that? There are as well situations like
] "\r" <--- "\r" ] "\n> " <--- "\n> "
or
["AT+CIPSEND=1,26\r\n" ] "\r\n>" <--- "\r\n>" ] "> " <--- " "
-
-
@Gordon : I have to say thank you for the great support!