Coder Social home page Coder Social logo

ethernet's People

Contributors

aallan avatar aethaniel avatar agdl avatar amcewen avatar arnie97 avatar bigdinotech avatar bigjohnson avatar chaveiro avatar cmaglie avatar damellis avatar eddyst avatar facchinm avatar fede85 avatar isantolin avatar jchristensen avatar lathoub avatar mathertel avatar matthijskooijman avatar michaelamie avatar ntruchsess avatar paulstoffregen avatar per1234 avatar ribbons avatar richard-sim avatar roncapat avatar rotzbua avatar sapienthetero avatar shfitz avatar tigoe avatar zeveland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ethernet's Issues

Unable to use

Using IDE 1.8.9, i added this to my own folder not the arduino one. Using examples "UDPSendReceiveString.ino" , i get a lot a compile errors:

D:\Programmes\Arduino189\arduino-builder -dump-prefs -logger=machine -hardware D:\Programmes\Arduino189\hardware -hardware C:\Users\Pierre\AppData\Local\Arduino15\packages -hardware D:\Documents\Arduino\hardware -tools D:\Programmes\Arduino189\tools-builder -tools D:\Programmes\Arduino189\hardware\tools\avr -tools C:\Users\Pierre\AppData\Local\Arduino15\packages -built-in-libraries D:\Programmes\Arduino189\libraries -libraries D:\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=1A86_7523 -ide-version=10809 -build-path C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=D:\Programmes\Arduino189\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=D:\Programmes\Arduino189\hardware\tools\avr -prefs=runtime.tools.avrdude.path=D:\Programmes\Arduino189\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=D:\Programmes\Arduino189\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=D:\Programmes\Arduino189\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=D:\Programmes\Arduino189\hardware\tools\avr -verbose D:\Documents\Arduino\libraries\Ethernet\examples\UDPSendReceiveString\UDPSendReceiveString.ino
D:\Programmes\Arduino189\arduino-builder -compile -logger=machine -hardware D:\Programmes\Arduino189\hardware -hardware C:\Users\Pierre\AppData\Local\Arduino15\packages -hardware D:\Documents\Arduino\hardware -tools D:\Programmes\Arduino189\tools-builder -tools D:\Programmes\Arduino189\hardware\tools\avr -tools C:\Users\Pierre\AppData\Local\Arduino15\packages -built-in-libraries D:\Programmes\Arduino189\libraries -libraries D:\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=1A86_7523 -ide-version=10809 -build-path C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200 -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=D:\Programmes\Arduino189\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=D:\Programmes\Arduino189\hardware\tools\avr -prefs=runtime.tools.avrdude.path=D:\Programmes\Arduino189\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=D:\Programmes\Arduino189\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=D:\Programmes\Arduino189\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=D:\Programmes\Arduino189\hardware\tools\avr -verbose D:\Documents\Arduino\libraries\Ethernet\examples\UDPSendReceiveString\UDPSendReceiveString.ino
Using board 'mega' from platform in folder: D:\Programmes\Arduino189\hardware\arduino\avr
Using core 'arduino' from platform in folder: D:\Programmes\Arduino189\hardware\arduino\avr
Detecting libraries used...
"D:\Programmes\Arduino189\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\Programmes\Arduino189\hardware\arduino\avr\cores\arduino" "-ID:\Programmes\Arduino189\hardware\arduino\avr\variants\mega" "C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\sketch\UDPSendReceiveString.ino.cpp" -o nul
"D:\Programmes\Arduino189\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\Programmes\Arduino189\hardware\arduino\avr\cores\arduino" "-ID:\Programmes\Arduino189\hardware\arduino\avr\variants\mega" "-ID:\Documents\Arduino\libraries\Ethernet\src" "C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\sketch\UDPSendReceiveString.ino.cpp" -o nul
Using cached library dependencies for file: D:\Documents\Arduino\libraries\Ethernet\src\Dhcp.cpp
Using cached library dependencies for file: D:\Documents\Arduino\libraries\Ethernet\src\Dns.cpp
Using cached library dependencies for file: D:\Documents\Arduino\libraries\Ethernet\src\Ethernet.cpp
Using cached library dependencies for file: D:\Documents\Arduino\libraries\Ethernet\src\EthernetClient.cpp
Using cached library dependencies for file: D:\Documents\Arduino\libraries\Ethernet\src\EthernetServer.cpp
Using cached library dependencies for file: D:\Documents\Arduino\libraries\Ethernet\src\EthernetUdp.cpp
"D:\Programmes\Arduino189\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\Programmes\Arduino189\hardware\arduino\avr\cores\arduino" "-ID:\Programmes\Arduino189\hardware\arduino\avr\variants\mega" "-ID:\Documents\Arduino\libraries\Ethernet\src" "-ID:\Programmes\Arduino189\hardware\arduino\avr\libraries\SPI\src" "D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp" -o nul
"D:\Programmes\Arduino189\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\Programmes\Arduino189\hardware\arduino\avr\cores\arduino" "-ID:\Programmes\Arduino189\hardware\arduino\avr\variants\mega" "-ID:\Documents\Arduino\libraries\Ethernet\src" "-ID:\Programmes\Arduino189\hardware\arduino\avr\libraries\SPI\src" "D:\Documents\Arduino\libraries\Ethernet\src\utility\w5100.cpp" -o nul
"D:\Programmes\Arduino189\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\Programmes\Arduino189\hardware\arduino\avr\cores\arduino" "-ID:\Programmes\Arduino189\hardware\arduino\avr\variants\mega" "-ID:\Documents\Arduino\libraries\Ethernet\src" "-ID:\Programmes\Arduino189\hardware\arduino\avr\libraries\SPI\src" "D:\Documents\Arduino\libraries\Ethernet\src\w5100.cpp" -o nul
"D:\Programmes\Arduino189\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\Programmes\Arduino189\hardware\arduino\avr\cores\arduino" "-ID:\Programmes\Arduino189\hardware\arduino\avr\variants\mega" "-ID:\Documents\Arduino\libraries\Ethernet\src" "-ID:\Programmes\Arduino189\hardware\arduino\avr\libraries\SPI\src" "D:\Programmes\Arduino189\hardware\arduino\avr\libraries\SPI\src\SPI.cpp" -o nul
Generating function prototypes...
"D:\Programmes\Arduino189\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\Programmes\Arduino189\hardware\arduino\avr\cores\arduino" "-ID:\Programmes\Arduino189\hardware\arduino\avr\variants\mega" "-ID:\Documents\Arduino\libraries\Ethernet\src" "-ID:\Programmes\Arduino189\hardware\arduino\avr\libraries\SPI\src" "C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\sketch\UDPSendReceiveString.ino.cpp" -o "C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\preproc\ctags_target_for_gcc_minus_e.cpp"
"D:\Programmes\Arduino189\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\preproc\ctags_target_for_gcc_minus_e.cpp"
Compilation du croquis...
"D:\Programmes\Arduino189\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\Programmes\Arduino189\hardware\arduino\avr\cores\arduino" "-ID:\Programmes\Arduino189\hardware\arduino\avr\variants\mega" "-ID:\Documents\Arduino\libraries\Ethernet\src" "-ID:\Programmes\Arduino189\hardware\arduino\avr\libraries\SPI\src" "C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\sketch\UDPSendReceiveString.ino.cpp" -o "C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\sketch\UDPSendReceiveString.ino.cpp.o"
Compiling libraries...
Compiling library "Ethernet"
Utilisation du fichier déjà compilé : C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\libraries\Ethernet\Dhcp.cpp.o
Utilisation du fichier déjà compilé : C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\libraries\Ethernet\EthernetServer.cpp.o
"D:\Programmes\Arduino189\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\Programmes\Arduino189\hardware\arduino\avr\cores\arduino" "-ID:\Programmes\Arduino189\hardware\arduino\avr\variants\mega" "-ID:\Documents\Arduino\libraries\Ethernet\src" "-ID:\Programmes\Arduino189\hardware\arduino\avr\libraries\SPI\src" "D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp" -o "C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\libraries\Ethernet\socket.cpp.o"
"D:\Programmes\Arduino189\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\Programmes\Arduino189\hardware\arduino\avr\cores\arduino" "-ID:\Programmes\Arduino189\hardware\arduino\avr\variants\mega" "-ID:\Documents\Arduino\libraries\Ethernet\src" "-ID:\Programmes\Arduino189\hardware\arduino\avr\libraries\SPI\src" "D:\Documents\Arduino\libraries\Ethernet\src\w5100.cpp" -o "C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\libraries\Ethernet\w5100.cpp.o"
Utilisation du fichier déjà compilé : C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\libraries\Ethernet\Dns.cpp.o
Utilisation du fichier déjà compilé : C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\libraries\Ethernet\EthernetClient.cpp.o
Utilisation du fichier déjà compilé : C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\libraries\Ethernet\EthernetUdp.cpp.o
Utilisation du fichier déjà compilé : C:\Users\Pierre\AppData\Local\Temp\arduino_build_649200\libraries\Ethernet\Ethernet.cpp.o
D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp: In static member function 'static uint8_t EthernetClass::socketBegin(uint8_t, uint16_t)':

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp:145:13: error: 'class W5100Class' has no member named 'waitForCmd'

if (!W5100.waitForCmd(s, expected)) {

         ^

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp: In static member function 'static uint8_t EthernetClass::socketBeginMulticast(uint8_t, IPAddress, uint16_t)':

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp:212:1: warning: label 'closemakesocket' defined but not used [-Wunused-label]

closemakesocket:

^

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp: In static member function 'static void EthernetClass::socketClose(uint8_t)':

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp:267:13: error: 'class W5100Class' has no member named 'waitForCmd'

if (!W5100.waitForCmd(s, SnSR::CLOSE_WAIT, SnSR::CLOSED, SnSR::FIN_WAIT)) {

         ^

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp: In static member function 'static uint8_t EthernetClass::socketListen(uint8_t)':

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp:288:13: error: 'class W5100Class' has no member named 'waitForCmd'

if (!W5100.waitForCmd(s, SnSR::LISTEN)) {

         ^

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp: In static member function 'static void EthernetClass::socketConnect(uint8_t, uint8_t*, uint16_t)':

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp:308:13: error: 'class W5100Class' has no member named 'waitForCmd'

if (!W5100.waitForCmd(s, SnSR::ESTABLISHED)) {

         ^

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp: In static member function 'static void EthernetClass::socketDisconnect(uint8_t)':

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp:327:13: error: 'class W5100Class' has no member named 'waitForCmd'

if (!W5100.waitForCmd(s, SnSR::TIME_WAIT, SnSR::CLOSED, SnSR::FIN_WAIT)) { // wait for command to complete, as indicated by Socket n Status Register

         ^

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp: In static member function 'static void EthernetClass::manageSockets(EthernetServer*, uint8_t, uint8_t)':

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp:640:10: warning: unused variable 'disconnectableSockets' [-Wunused-variable]

uint8_t disconnectableSockets = 0; // number of sockets in a condition that allows them to be safely disconnected

      ^

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp: In static member function 'static uint32_t EthernetClass::getWaitTime()':

D:\Documents\Arduino\libraries\Ethernet\src\socket.cpp:755:21: error: 'class W5100Class' has no member named 'getAvgWait'

uint32_t t = W5100.getAvgWait();

                 ^

Plusieurs bibliothèque trouvées pour "Ethernet.h"
Utilisé : D:\Documents\Arduino\libraries\Ethernet
Non utilisé : D:\Programmes\Arduino189\libraries\Ethernet
Utilisation de la bibliothèque Ethernet version 2.0.0 dans le dossier: D:\Documents\Arduino\libraries\Ethernet
Utilisation de la bibliothèque SPI version 1.0 dans le dossier: D:\Programmes\Arduino189\hardware\arduino\avr\libraries\SPI
exit status 1
Erreur de compilation pour la carte Arduino/Genuino Mega or Mega 2560

Maybe i did somethiong wrong ?

Watchdog Timer must be included or commented out to compile

Apologies; when I uploaded to GitHub I put the new w5100 files in the main directory instead of the utility directory where they belong. They are now where they belong.

Originally posted by @SapientHetero in #2 (comment)

Hello. Thanks for the feedback, and you are now experiencing another error in the compilation. Thankful.

Follow...

Applications/Arduino.app/Contents/Java/libraries/Ethernet/src/utility/w5100.cpp:16:10: fatal error: wdtFunctions.h: No such file or directory
Foram encontradas múltiplas bibliotecas para "EasyWebServer.h"
Usado: /Users/macbook/Documents/Arduino/libraries/EasyWebServer-1.0.0
Foram encontradas múltiplas bibliotecas para "Streaming.h"
Usado: /Users/macbook/Documents/Arduino/libraries/Streaming
Foram encontradas múltiplas bibliotecas para "Ethernet.h"
#include "wdtFunctions.h" ////// WARNING! A copy of wdtFunctions had to be put in Ethernet/src directory to make this work. Make sure to update it if the main version ever changes

Usado: /Applications/Arduino.app/Contents/Java/libraries/Ethernet
^~~~~~~~~~~~~~~~
Foram encontradas múltiplas bibliotecas para "SPI.h"
compilation terminated.
Usado: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI
Foram encontradas múltiplas bibliotecas para "Agentuino.h"
Usado: /Users/macbook/Documents/Arduino/libraries/Agentuino
Foram encontradas múltiplas bibliotecas para "DHT.h"
Usado: /Users/macbook/Documents/Arduino/libraries/DHT
exit status 1
Erro compilando para a placa Arduino/Genuino Uno

It is not compiled.

Good morning @SapientHetero, I'm having intermittent connectivity issues on SNMP and HTTP requests. It works for a while, but randomly lose connectivity, ping (ICMP) always responds. I have included server.begin () in the loop in which instability has improved, but connectivity drops remain, but the difference is that connectivity reestablishes itself. Because of this, I tried to use the Ethernet library you modified, but always has an error when compiling. Could help? Thankful!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.