Package: arduino
Version: 1:1.0.1+dfsg-6
Severity: important
Dear Maintainer,
I was tring to compile a simple code to make a translation from the hostname to
an IP address using the Arduino IDE (and libraries) included in debian sid:
#include <SPI.h>
#include <Ethernet.h>
#include <Dns.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
EthernetClient client;
char server[] = "
www.arduino.cc";
int serverport = 80;
void setup() {
// start serial port:
Serial.begin(115200);
// give the ethernet module time to boot up:
delay(1000);
// start the Ethernet connection using a fixed IP address and DNS server:
//Ethernet.begin(mac, ip, ipdns, ipgw, mask);
Ethernet.begin(mac);
// print the Ethernet board/shield's IP address:
Serial.print("My IP address: ");
Serial.println(Ethernet.localIP());
}
void loop() {
DNSClient dns;
// OPENDNS
IPAddress dns_ip(208, 67, 222, 222);
IPAddress out_ip;
dns.begin(dns_ip);
dns.getHostByName(server, out_ip);
Serial.println(out_ip);
delay(5000);
}
It doesn't make the dns lookup due to a problem with the IPAddress class.
Tring to understand more I noticed that it isn't a problem with the Ethernet
library but a problem that is only present in the debian packaged.
In fact I asked on the arduino forum (
http://arduino.cc/forum/index.php/topic,125140.msg941018.html ) and I found
that using the Arduino Ide from the official web site there isn't any problem.
After I looked into the libraries code and I noticed a lot of differences
between the official 1.0.1 library version and the debian package one.
I found that you have put inside the code a patch so solve a compilation
problem and I guess these code lines led to this code problem.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (700, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages arduino depends on:
ii arduino-core 1:1.0.1+dfsg-6
ii default-jre [java6-runtime] 1:1.6-47
ii libjna-java 3.2.7-4
ii librxtx-java 2.2pre2-11
ii openjdk-6-jre [java6-runtime] 6b24-1.11.4-3
Versions of packages arduino recommends:
ii extra-xdg-menus 1.0-4
ii policykit-1 0.105-1
arduino suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to
debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listm...@lists.debian.org