Solved! Go to Solution.
Hello Ron,
Not sure you're aware ArcPad Studio Help is now Online as announced earlier this month on ArcPad Team Blog. I suggest reviewing documentation on ArcPad Layer Definition File Schema, AUX event and OnClose, OnComm, & OnOpen attributes, and COMPORT element as well as the sample ArcPadPrefs.apx.
Here is a sample from past DevSummit presentation - Read and Parse AUX port example:
function ReadAUXForTemp ()
{
// called in OnComm event to read data from AUX port
// read from the AUX port
var strRawData = AUX.ReadLine();
// parse the comma-delimited data
var arrParsedData = strRawData.split(",");
// if data is valid, return the temperature
if (arrParsedData [0] == "$PTEMP")
return (parseFloat(arrParsedData [1]));
else
return (NaN);
}
Hope this helps get you started,
Denise