Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I found this code really helpful if using an arduino ethernet shield. **broken link removed**
You can send it a whole bunch of commands and scales very well. ex. http:\\<ip of arduino>\digitalWrite\4
The problem is you are using the wrong relational operator. "gt" is for comparing two strings. For example,
$string1 = 'cat';
$string2 = 'dog';
if ($string1 ne $string2) {
print "Not equal\n";
} else {
print "Equal\n";
}
You need to use < or > for integers.
$x =...
I am not sure what you are trying to do, but there is a lot of support for Arduino. You can get an Arduino and put an ethernet shield on it and set it up as client or server.
https://arduino.cc/en/Main/ArduinoEthernetShield
Try this:
Stack.h
// implementation file for a stack class
#include <iostream>
using namespace std;
const int stack_size = 1000;
class stack
{
private:
// data for the stack
char data [stack_size];
// the index of the top element of the stack
int...
I did something similar to this a long time ago. I created a module "porting.vb"
Module porting
Public Declare Sub Out Lib "inpout32.dll" _
Alias "Out32" (ByVal PortAddress As Integer, ByVal Value As Integer)
End Module
Then you can just make simple calls to it:
porting.Out(888...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.