DevinCook / agentuino

Automatically exported from code.google.com/p/agentuino
0 stars 0 forks source link

Agentuino compiles, but doesn't work, with Arduino 1.0.x and later #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When using agentuino with arduino 1.0.0 or 1.0.1, the example sketch will 
compile, but SNMP does not work - it times out instead.

This appears to be due to changes in Ethernet and EthernetUdp. The attached 
patch file fixes it.

Specifically: 

1. Udp.parsePacket() is required in listen() before Udp.available() can be 
called.

2. When saving the packetsize in requestPdu(), don't compensate for the UDP 
header. This is because we've already called parsePacket, which has advanced 
the buffer past the UDP header.

3. Udp.parsePacket() is no longer required in requestPdu() as it has already 
been run for this packet

After applying these changes, the example sketch works fine.

Original issue reported on code.google.com by dht...@gmail.com on 19 Jun 2012 at 9:51

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for putting this out there.  Got my project back on track

Original comment by averb...@gmail.com on 24 Jun 2012 at 11:40

GoogleCodeExporter commented 9 years ago
This Patch solved the problem for me. Thanks!

Original comment by kboe...@googlemail.com on 30 Jun 2012 at 9:57

GoogleCodeExporter commented 9 years ago
I never got the timeout issue, but I've applied your patch in rev 46, thank 
you. :)

Original comment by alfso...@gmail.com on 6 Jul 2012 at 9:57