Open tfriedrich85 opened 4 years ago
It seems that a wrong ethernet library was included in the build. You might have multiple conflicting libraries installed (i.e. for different boards). Try whether a basic ethernet example for the Nano works first.
Hello,
I try to use ConfigurableFirmata with Ethernet I had it running with USB before, with out any compiling problems.
Now I followed the instructions to setup the Ethernet with the Arduino Nano and the Arduino Nano Ethernet Shield v.1.0 The only lines I changed are bold. `/ Firmata is a generic protocol for communicating with microcontrollers from software on a host computer. It is intended to work with any host computer software package. To download a host software package, please clink on the following link to open the download page in your default browser. https://github.com/firmata/ConfigurableFirmata#firmata-client-libraries Copyright (C) 2006-2008 Hans-Christoph Steiner. All rights reserved. Copyright (C) 2010-2011 Paul Stoffregen. All rights reserved. Copyright (C) 2009 Shigeru Kobayashi. All rights reserved. Copyright (C) 2013 Norbert Truchsess. All rights reserved. Copyright (C) 2014 Nicolas Panel. All rights reserved. Copyright (C) 2009-2017 Jeff Hoefs. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. See file LICENSE.txt for further informations on licensing terms. Last updated: September 16th, 2017 /
/ README This is an example use of ConfigurableFirmata. The easiest way to create a configuration is to use http://firmatabuilder.com and select the communication transport and the firmata features to include and an Arduino sketch (.ino) file will be generated and downloaded automatically. To manually configure a sketch, copy this file and follow the instructions in the ETHERNET CONFIGURATION OPTION (if you want to use Ethernet instead of Serial/USB) and FIRMATA FEATURE CONFIGURATION sections in this file. /
include "ConfigurableFirmata.h"
/*==============================================================================
// STEP 1 [REQUIRED] // Uncomment / comment the appropriate set of includes for your hardware (OPTION A, B or C)
/*
include**
/*
/*
if defined ethernet_h || defined UIPETHERNET_H || defined _YUN_CLIENTH
define NETWORK_FIRMATA
// STEP 2 [REQUIRED for all boards and shields] // replace with IP of the server you want to connect to, comment out if using 'remote_host' #define remote_ip IPAddress(192, 168, 178, 1) // OR replace with hostname of server you want to connect to, comment out if using 'remote_ip' // #define remote_host "server.local"
// STEP 3 [REQUIRED unless using Arduino Yun] // Replace with the port that your server is listening on #define remote_port 3030
// STEP 4 [REQUIRED unless using Arduino Yun OR if not using DHCP] // Replace with your board or Ethernet shield's IP address // Comment out if you want to use DHCP //#define local_ip IPAddress(192, 168, 178, 200)
// STEP 5 [REQUIRED unless using Arduino Yun] // replace with Ethernet shield mac. Must be unique for your network const byte mac[] = {0x90, 0xA2, 0xDA, 0x0D, 0x07, 0x02};
endif
`
WARNUNG: Bibliothek Ethernet behauptet auf esp8266 Architektur(en) ausgeführt werden zu können und ist möglicherweise inkompatibel mit Ihrem derzeitigen Board, welches auf avr Architektur(en) ausgeführt wird. D:\Users\BKU\TobiasFriedrich\Documents\Arduino\libraries\Ethernet\src\Dns.cpp: In member function 'int DNSClient::getHostByName(const char*, IPAddress&)':
D:\Users\BKU\TobiasFriedrich\Documents\Arduino\libraries\Ethernet\src\Dns.cpp:130:52: error: 'INADDR_ANY' was not declared in this scope
D:\Users\BKU\TobiasFriedrich\Documents\Arduino\libraries\Ethernet\src\Dns.cpp:130:52: note: suggested alternative: 'INADDR_NONE'
Mehrere Bibliotheken wurden für "ConfigurableFirmata.h" gefunden Benutzt: D:\Users\BKU\TobiasFriedrich\Documents\Arduino\libraries\ConfigurableFirmata Nicht benutzt: D:\Users\BKU\TobiasFriedrich\Documents\Arduino\libraries\FirmataWithDeviceFeature Mehrere Bibliotheken wurden für "SPI.h" gefunden Benutzt: C:\Program Nicht benutzt: D:\Users\BKU\TobiasFriedrich\Documents\Arduino\libraries\SPI Mehrere Bibliotheken wurden für "Ethernet.h" gefunden Benutzt: D:\Users\BKU\TobiasFriedrich\Documents\Arduino\libraries\Ethernet Nicht benutzt: C:\Program Mehrere Bibliotheken wurden für "Servo.h" gefunden Benutzt: C:\Program Nicht benutzt: D:\Users\BKU\TobiasFriedrich\Documents\Arduino\libraries\Servo Mehrere Bibliotheken wurden für "Wire.h" gefunden Benutzt: C:\Program Nicht benutzt: D:\Users\BKU\TobiasFriedrich\Documents\Arduino\libraries\Wire Mehrere Bibliotheken wurden für "SoftwareSerial.h" gefunden Benutzt: C:\Program exit status 1 Fehler beim Kompilieren für das Board Arduino Nano. `