Questions tagged [ethercard]

EtherCard is a driver for the ENC28J60 chip, compatible with Arduino IDE.

EtherCard is a driver for the ENC28J60 chip, compatible with Arduino IDE, It can be found on GitHub.

11 questions
2
votes
0 answers

Arduino Ethercard ENC28J60 Posting data not working

I've been trying to post data to my Apache web server at home with no luck. I can see that the server receives the request in the log file but headers are all messed up and the server cannot process the request. Arduino code used to send the data…
0
votes
2 answers

Getting correct IP address but not sending code

I would like to send request to domoticz: http://192.168.1.204:8084/json.htm?type=command¶m=udevice&idx=3&svalue=5000 (address tested and changing value in domoticz device) I've used basic example to connect arduino to the network. It's getting…
Lucas
  • 3
  • 1
0
votes
1 answer

I have problem showing a float variable in an Arduino webserver

I am using Arduino Uno, ENC28j60. using rbbb_server example. the library I am using: as can be seen in the code below I am trying to convert my Float var to Str using dtostrf() in the homepage function since emit_p() can not accept…
Arash
  • 3
  • 3
0
votes
1 answer

How to send this JSon via POST to server with EtherCard library and Arduino Uno?

I need to post this data to my remote server: StaticJsonBuffer<200> jsonBuffer; DynamicJsonBuffer jBuffer; JsonObject& root = jsonBuffer.createObject(); root["latitude"]= gps.location.lat(), root["longitude"]= gps.location.lng(); …
Hawos
  • 33
  • 6
0
votes
0 answers

Arduino EtherCard Post StaticJsonDocument to a web server

I am working on a project which I need to post some sensor data to my web service over tcp. I used StaticJsonDocument to hold these sensor data. The problem is that with the code below I can not be able to post any data. Currently I am using…
0
votes
1 answer

Arduino ethercard.h get dhcp option

Is there any way to get a specific dhcp option using Arduino and ethernet? I am trying to spare the pins that would be used as a setup, so i send the configuration to the arduino via lan. I would like to be able to specify where the arduino will…
Tomislav Plečko
  • 167
  • 2
  • 14
0
votes
1 answer

How to build string for ethercard webpage, arduino

How do i build a suitable string from an array of data values, that the ethercard library will accept to serve as a webpage? From the examples i have the below thus far, but i want to use an variable number of array elements (up to the limit of the…
zoneblue
  • 124
  • 7
0
votes
3 answers

Arduino - ENC28J60 - EtherCard.h - Compile Error - 'word homePage()' was declared 'extern' and later 'static' [-fpermissive]

Arduino Uno ENC28J60 EtherCard.h i am trying to compile and run this example. But i am getting this error. "exit status 1 'word homePage()' was declared 'extern' and later 'static' [-fpermissive]" #include static byte…
Nav
  • 1
  • 3
0
votes
1 answer

Arduino EtherCard UDP: constant repeats

TL;DR Arduino sends UDP twice, but it appears as it is sending it non-stop on the receiving end. I have a wireless doorbell connected to Arduino. This is the code I'm using to send a UDP packet using ENC28J60 and EtherCard from Arduino: #include…
sgzmd
  • 291
  • 1
  • 4
  • 10
0
votes
1 answer

Using Ethercard library to send HTTP GET with request headers

I am trying to interface an arduino with a modem using ENC28J60. I wrote my code and I am able to browse url using ether.browseUrl() ether.browseUrl(PSTR("/statsadsl.html"), "", website, browseUrlCallback1); I used the above shown line in order to…
Manu M.
  • 39
  • 2
  • 5
-1
votes
1 answer

What is the function of "millis()" in this code snippet?

What is the function of millis() in this code snippet? if (millis() > timer) { timer = millis() + 5000; ether.browseUrl(PSTR("/demo/"), "aphorisms.php", website, response_callback); }