Hirdetés
- Apple Watch
- Bemutatkozott a Poco X7 és X7 Pro
- Samsung Galaxy S24 - nos, Exynos
- Yettel topik
- „Új mérce az Android világában” – Kezünkben a Vivo X300 és X300 Pro
- Samsung Galaxy S25 Ultra - titán keret, acélos teljesítmény
- Milyen hagyományos (nem okos-) telefont vegyek?
- Samsung Galaxy S25 - végre van kicsi!
- Nubia Neo 3 GT 5G - játéktelefon
- Külföldi prepaid SIM-ek itthon
-
Mobilarena
Arduino hardverrel és szoftverrel foglakozó téma. Minden mikrovezérlő ami arduinoval programozható, és minden arduino program, board, és hardverrel kapcsolatos kérdések helye.
Új hozzászólás Aktív témák
-
peter1998
tag
Sziasztok! Egy ethernet modul van csatlakoztatva egy Unohoz.Egy php fájlt kell meghívnia ami sikerül is neki csak sajnos az egész számokat adja át?.Ehez kérnék egy kis segítséget.Így néz ki jelenleg a kódom :
// Demo using DHCP and DNS to perform a web client request.
// 2011-06-08 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <EtherCard.h>
// ethernet interface mac address, must be unique on the LAN
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };
byte Ethernet::buffer[700];
static uint32_t timer;
const char website[] PROGMEM = "192.168.1.10";
int bar = 123;
static void my_callback (byte status, word off, word len) {
Ethernet::buffer[off+300] = 0;
Serial.print((const char*) Ethernet::buffer + off);
}
void setup () {
Serial.begin(57600);
Serial.println(F("\n[webClient]"));
if (ether.begin(sizeof Ethernet::buffer, mymac) == 8)
Serial.println(F("Failed to access Ethernet controller"));
if (!ether.dhcpSetup())
Serial.println(F("DHCP failed"));
ether.printIp("IP: ", ether.myip);
ether.printIp("GW: ", ether.gwip);
ether.printIp("DNS: ", ether.dnsip);
if (!ether.dnsLookup(website))
Serial.println("DNS failed");
ether.printIp("SRV: ", ether.hisip);
}
void loop () {
ether.packetLoop(ether.packetReceive());
int hum = 23.3;
int tmp = 35.87;
if (millis() > timer) {
timer = millis() + 5000;
char w[50];
sprintf(w,"temp1=%d&moi1=%d",tmp,hum); // prepare the GET, all variables in one string
ether.browseUrl(PSTR("/add.php?"), w, website, my_callback); // send it to the server
}
}
Új hozzászólás Aktív témák
- Melyik tápegységet vegyem?
- Apple Watch
- Pánik a memóriapiacon
- 5.1, 7.1 és gamer fejhallgatók
- Star Wars Outlaws teszt
- Vezeték nélküli fülhallgatók
- Bemutatkozott a Poco X7 és X7 Pro
- Őrületes specifikációkkal rendelkezik a Tachyum csodaprocesszora
- One otthoni szolgáltatások (TV, internet, telefon)
- Képregény topik
- További aktív témák...
- AKCIÓ! Lenovo Legion Slim 5 Gamer notebook - R7 7435HS 16GB RAM 1TB SSD RTX 4070 8GB GDDR6 WIN11
- ÁRGARANCIA!Épített KomPhone Ryzen 5 7600X 16/32/64GB RAM RX 9060XT 16GB GAMER PC termékbeszámítással
- Apple iPhone 14 Pro Max Gold Dynamic Island, 120 Hz ProMotion, 48 MP kamera-128 GB-100%
- Macbook Pro 2019 Laptop A2141 i9
- Apple iPhone 13 Pro Max Graphite ProMotion 120 Hz, Pro kamerák 128 GB-100%-3hó gari!
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
ekkold

