Would you like to see the whole code?
I need to be able to send some data as a stream.
Do i need to need to add something to this line?
"char cVal1[7]= ;"
So you think that the function getLocalData is fine, it does not need to be modified.
To send the data i used the function Senddata()
String sDataField1=String('cVal1');
String sDataField2=String('cVal2');
String sDataField3=String('cVal3');
String sDataField4=String('cVal4');
String sDataField5=String('cVal5');
String sDataField6=String('cVal6');
String sDataField7=String('cVal7');
String sDataField8=String('cVal8');
sDataField1=String('cVal1');
sDataField2=String('cVal2');
sDataField3=String('cVal3');
sDataField4=String('cVal4');
sDataField5=String('cVal5');
sDataField6=String('cVal6');
sDataField7=String('cVal7');
sDataField8=String('cVal8');
// Construct the string that will store
// the final stream to be transmitted.
strcpy(cOutData,cVal1);
strcat(cOutData,ASCII_DELIM);
strcat(cOutData,cVal2);
strcat(cOutData,ASCII_DELIM);
strcat(cOutData,cVal3);
strcat(cOutData,ASCII_DELIM);
strcat(cOutData,cVal4);
strcat(cOutData,ASCII_DELIM);
strcat(cOutData,cVal5);
strcat(cOutData,ASCII_DELIM);
strcat(cOutData,cVal6);
strcat(cOutData,ASCII_DELIM);
strcat(cOutData,cVal7);
strcat(cOutData,ASCII_DELIM);
strcat(cOutData,cVal8);
strcat(cOutData,ASCII_DELIM);
How are you today?
I am working on a project which one involves 3 sensors located in the toilets of a airport.
Thoses sensor are set up on a panel. the first sensor is on the top(toilet are clean) the middle one for :the toilet are dirty and the bottom one for counting the number of people have been in the toilet. Each person who has been in the toilet needs to swap their hand through on of those sensor(top or middle).
So the sensor store all this data and once every 3 ou 10 minutes(I need to be able to change the timing) send them to a database(Smallint type) as a stream so the staff of the airport can send someone to clean it.
Before changing the code I have sent tou you 2 days ago,I need to make a code able to send thoses data as a stream and after a certain amont of time. But my data are sent like this.
34,000000000,0,1(to simulate the people)
163(Good=clean)
,178(bad=dirty)
Do you have an idea?
34,000000000,0,1(to simulate the people)
163(Good=clean)
,178(bad=dirty)
34,000000000,0,1,163,178
34,000000000,0,1
Does that make sense?
The first data is a number,the second should be the number of people saying they the toilet are clean,the third one is for the number of people saying that the toilet are dirty, and the fourth one is the number of people have been in the toilet. A fifth and a sixth (I am using them as a switch simulating the people, when switch1 is on,someone has said that the toilet are clean etc.. ) I need to have 2 more data (0,0)as spare for future improvement the order is not really important.
34,000000000,0,1,163,178
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?