1
Web platform / How to create a new file?
I run a modified version of MCstackDemo2.
I would like to ad a type of log file to the webserver. If the log file dosent exist it should be created.
Have anybody tested something like this?
//Daniel
Open Source Hardware
This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.
TRISB=0xC0;
if (PORTBbits.RB6=1) {
TCPPutROMString(MySocket, (ROM BYTE*) "S1:ON");
TCPFlush(MySocket);
}else{
TCPPutROMString(MySocket, (ROM BYTE*) "S1:OFF");
TCPFlush(MySocket);
}
if (PORTBbits.RB7=1) {
TCPPutROMString(MySocket, (ROM BYTE*) "S2:ON");
TCPFlush(MySocket);
}else{
TCPPutROMString(MySocket, (ROM BYTE*) "S2:OFF");
TCPFlush(MySocket);
}