Hirdetés
- Luck Dragon: Asszociációs játék. :)
- sziku69: Szólánc.
- sziku69: Fűzzük össze a szavakat :)
- laskr99: DFI és DFI Lanparty gyűjteményem
- eBay-es kütyük kis pénzért
- Sub-ZeRo: Euro Truck Simulator 2 & American Truck Simulator 1 (esetleg 2 majd, ha lesz) :)
- D1Rect: Nagy "hülyétkapokazapróktól" topik
- GoodSpeed: Ágymatrac keresési kálvária
- gban: Ingyen kellene, de tegnapra
- sh4d0w: Kalózkodás. Kalózkodás?
-
LOGOUT
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
- Robogó, kismotor
- Motorolaj, hajtóműolaj, hűtőfolyadék, adalékok és szűrők topikja
- Futás, futópályák
- Samsung Galaxy Felhasználók OFF topicja
- Amazfit Helio Strap – képernyőmentesen
- Kertészet, mezőgazdaság topik
- Torrent meghívó kunyeráló
- Revolut
- Hobby elektronika
- Kompakt vízhűtés
- További aktív témák...
- 170 - Lenovo Legion Pro 7 (16IRX9H) - Intel Core i9-14900HX, RTX 4090
- magyar billentyűzet - 165 - Lenovo Legion Pro 7 (16IRX9H) - Intel Core i9-14900HX, RTX 4080
- 164 - Lenovo Legion Pro 7 (16IRX9H) - Intel Core i9-14900HX, RTX 4090
- Microsoft Surface Hub 2s - Interaktiv 4K monitor/ All in one PC - I5 8. generációs - Piaci ár alatt
- Benq - LU951- 5000 Ansi Lézer projektor - Piaci ár alatt
- iKing - Apple iPhone 15 Pro Natural Titanium ProMotion 120 Hz, A17 Pro, USB-C 128 GB
- BESZÁMÍTÁS! MSI B550M R7 5800X3D 32GB DDR4 1TB SSD RTX 4070 12GB ZALMAN M4 A-DATA 750W
- HIBÁTLAN iPhone 13 Pro 128GB Sierra Blue -1 ÉV GARANCIA - Kártyafüggetlen, MS3750, 100% Akkumulátor
- BESZÁMÍTÁS! ASUS H510M i7 10700 16GB DDR4 512GB SSD RTX 2070 SUPER 8GB AeroCool Quantum Mesh 650W
- Gyári garanciával Digitalizáló tábla XP-PEN Artist Pro 24
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
ekkold
