Create a C++, C program that pings an RS-232 Serial Port (Com1) and receives a string response every 5 to 10 minutes. String response must be posted to two different websites via HTTP POST.
This is critical. Several developers have delivered programs which run great in XP and higher, but would not run in windows 98 SE. The program must absolutely run in windows 98 SE lite version. Program size must be under 3 MB.
See attached file for additional details.
## Deliverables
Please see attached file for port specifications.
I require source code and instructions for compiling an .exe for windows 98 SE.
Compiled program must not have any memory leaks.
Program will be launched from a startup folder shortcut and run continuously.
I will provide POST websites after bid is accepted.
Here is some psuedo-code showing the basic idea.
(This should be a very simple program to write.)
//include necessary headers
//setup COM PORT
//9600 Baud (Bits/Second)
//8 Data Bits
//No Parity
//1 Stop Bit
//No Handshaking
string response = "";
string website1 = "[login to view URL]";
string website2 = "[login to view URL]"
int sleepVar = 5;
startloop
{
//query the COM1 port and get response into a string
string response = [login to view URL]("(?)")
//post response string to websites
doHTTPPOST(response, website1)
doHTTPPOST(response, website2)
//sleep 5 to 10 mintues
sleep(sleepVar)
//do any necessary garbage cleanup. Can't have any memory leaks.
//repeat loop infinitely.
}