- Fotók, videók mobillal
- Mobil flották
- Motorola Edge 50 Neo - az egyensúly gyengesége
- Samsung Galaxy A54 - türelemjáték
- Google Pixel 9 és Pixel 9 Pro összehasonlító gyorsteszt
- Motorola Moto Tag - nyomom, követ
- Milyen okostelefont vegyek?
- Xiaomi 14 - párátlanul jó lehetne
- eSIM, a kártyamentes szabadság
- Huawei Watch GT 5 Pro - egészség + stílus
-
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
Egy enc28j60-as ethernet modult sikerült beszereznem.Hozzá a könyvtárat is.
#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[500];
BufferFiller bfill;
void setup () {
if (ether.begin(sizeof Ethernet::buffer, mymac, 53) == 0)
Serial.println( "Failed to access Ethernet controller");
if (!ether.dhcpSetup())
Serial.println("DHCP failed");
}
static word homePage() {
int masik = 12 ;
int kalap = 1333 ;
bfill = ether.tcpOffset();
bfill.emit_p(PSTR(
"<html>"
"<body onload="document.createElement('form').submit.call(document.getElementById('myForm'))">"
"<form id="myForm" name="myForm" action="http://192.168.1.10/add.php" method="GET">"
"<input type="hidden" name="temp1" value="remelem">"
"<input type="hidden" name="moi1" value="mukodik">"
"</form>"
"</body>"
"<asdasdasd>"
),
masik , kalap );
return bfill.position();
}
void loop () {
word len = ether.packetReceive();
word pos = ether.packetLoop(len);
if (pos) // check if valid tcp data is received
ether.httpServerReply(homePage()); // send web page data
}Ez lenne a programom.Sajnos ilyen hibakódot kapok:
Arduino: 1.6.4 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from C:\Users\peti\Desktop\arduino-1.6.4\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from C:\Users\peti\Desktop\arduino-1.6.4\libraries\ethercard-master/EtherCard.h:28,
from szerver2.ino:1:
szerver2.ino: In function 'word homePage()':
szerver2:28: error: expected ')' before 'document'
expected ')' before 'document'
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.A kód annyit csinálna hogy ha felmegyek az oldalra akkor meghív automatikusan egy php fájlt és az pedig egy mysql-be ír.
Új hozzászólás Aktív témák
- A fociról könnyedén, egy baráti társaságban
- Torrent meghívó kunyeráló
- Counter-Strike: Global Offensive (CS:GO) / Counter-Strike 2 (CS2)
- Építő/felújító topik
- SONY LCD és LED TV-k
- Luck Dragon: Asszociációs játék. :)
- Clair Obscur: Expedition 33 teszt
- Konteó topic
- Fotók, videók mobillal
- ZIDOO médialejátszók
- További aktív témák...
- Megaport gaming pc + billentyű
- Csere-Beszámítás! Ryzen 9 9950X3D Processzor! 16Mag-32Szál!
- Csere-Beszámítás! Intel Core I9 14900KS 24Mag-32Szál processzor!
- Csere-Beszámítás! Asus Rog Strix GTX 1080Ti 11GB GDDR5X Videokártya!
- Csere-Beszámítás! Asrock Challanger B580 12GB GDDR6 Videokártya! Bemutató Darab!
- Telefon felvásárlás!! Apple Watch Series 6/Apple Watch Series 7/Apple Watch Series 8
- Samsung Galaxy Xcover 5 64GB, Kártyafüggetlen, 1 Év Garanciával
- ÁRGARANCIA!Épített KomPhone Ryzen 7 7700X 32/64GB RAM RTX 5070Ti 16GB GAMER PC termékbeszámítással
- Lenovo Thinkpad P16 G2 - i9-13980HX, 64GB, 1TB SSD, 16" WQUXGA (3840 2400), RTX 4090 (ELKELT)
- Bomba ár! HP EliteBook 850 G2 - i5-5GEN I 8GB I 256GB SSD I 15,6" FULL HD I Cam I W10 I Gari!
Állásajánlatok
Cég: CAMERA-PRO Hungary Kft
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest