Click here to Skip to main content
15,883,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sleep Function Pin
GAJERA3-Nov-10 0:26
GAJERA3-Nov-10 0:26 
GeneralRe: Sleep Function Pin
CPallini3-Nov-10 2:43
mveCPallini3-Nov-10 2:43 
GeneralRe: Sleep Function Pin
GAJERA3-Nov-10 17:45
GAJERA3-Nov-10 17:45 
AnswerRe: Sleep Function Pin
Cedric Moonen2-Nov-10 23:09
Cedric Moonen2-Nov-10 23:09 
AnswerRe: Sleep Function Pin
Chris Meech3-Nov-10 2:31
Chris Meech3-Nov-10 2:31 
AnswerRe: Sleep Function Pin
Stephen Hewitt3-Nov-10 4:16
Stephen Hewitt3-Nov-10 4:16 
AnswerRe: Sleep Function Pin
«_Superman_»3-Nov-10 6:29
professional«_Superman_»3-Nov-10 6:29 
Questionproblems with arrays Pin
rezen852-Nov-10 22:28
rezen852-Nov-10 22:28 
hi,i have written the code as shown below and it's to capture real time temperature but i have a problem to capture the temperature readings which i declare it as
C++
tmpVALUE
.I tried to place the readings to the arrays but it gave me an error:(error:
C++
tmpVALUE
was not declared in this scope.Please advice.
C++
float tmpVALUE = 0;
int i=0;
void setup()
{
  SensorEvent.setBoardMode(SENS_ON);
 
  XBee.setMode(XBEE_ON);
  delay(50);
  USB.println("Start");
  delay(100);
}

void loop()
{
   char MSG[10]={tmpVALUE}; 
  char* MSG0=0; 
    //char *start;
    int i=0;
  
  float tmpVALUE=0;
  tmpVALUE = SensorEvent.readValue(SENS_SOCKET5);
  
  if(tmpVALUE>0.5)
  {
    tmpVALUE=((tmpVALUE-0.500)/0.010);
  }
  else
  {
    tmpVALUE=tmpVALUE/0.010;
  }
  
  delay(100);
  XBee.print("Temperature: ");
  XBee.println(tmpVALUE);
  
  //start=MSG[10];
  
  //Terminate the temperature taking
   for (int i=0; i<10; i++)
  {
    MSG0[i]=tmpValue;
    MSG1[i]=tmpValue;
    MSG2[i]=tmpValue;
    MSG3[i]=tmpValue;
    MSG4[i]=tmpValue;
    MSG5[i]=tmpValue;
    MSG6[i]=tmpValue;
    MSG7[i]=tmpValue;
    MSG8[i]=tmpValue;
    MSG9[i]=tmpValue;
  }
  
  xbee.OFF();
  delay(5000);
}

AnswerRe: problems with arrays Pin
Richard MacCutchan2-Nov-10 22:32
mveRichard MacCutchan2-Nov-10 22:32 
GeneralRe: problems with arrays Pin
rezen852-Nov-10 23:39
rezen852-Nov-10 23:39 
GeneralRe: problems with arrays Pin
Richard MacCutchan3-Nov-10 4:45
mveRichard MacCutchan3-Nov-10 4:45 
AnswerRe: problems with arrays Pin
ShilpiP2-Nov-10 22:45
ShilpiP2-Nov-10 22:45 
GeneralRe: problems with arrays Pin
rezen852-Nov-10 23:45
rezen852-Nov-10 23:45 
QuestionMDI with CDocument invalid pointer Pin
Pascal Pinchauret-Lamothe2-Nov-10 6:19
Pascal Pinchauret-Lamothe2-Nov-10 6:19 
AnswerRe: MDI with CDocument invalid pointer Pin
Richard MacCutchan2-Nov-10 12:17
mveRichard MacCutchan2-Nov-10 12:17 
GeneralRe: MDI with CDocument invalid pointer Pin
Pascal Pinchauret-Lamothe25-Nov-10 4:22
Pascal Pinchauret-Lamothe25-Nov-10 4:22 
QuestionMulti-line List Control Pin
softwaremonkey2-Nov-10 5:06
softwaremonkey2-Nov-10 5:06 
AnswerRe: Multi-line List Control Pin
federico.strati2-Nov-10 5:39
federico.strati2-Nov-10 5:39 
AnswerRe: Multi-line List Control Pin
«_Superman_»2-Nov-10 7:06
professional«_Superman_»2-Nov-10 7:06 
QuestionXML parsing Pin
Benjamin Bruno2-Nov-10 3:19
Benjamin Bruno2-Nov-10 3:19 
AnswerRe: XML parsing Pin
CPallini2-Nov-10 3:25
mveCPallini2-Nov-10 3:25 
AnswerRe: XML parsing Pin
ShilpiP2-Nov-10 19:36
ShilpiP2-Nov-10 19:36 
QuestionAFX_EXT_CLASS Problem. Pin
002comp1-Nov-10 23:30
002comp1-Nov-10 23:30 
AnswerRe: AFX_EXT_CLASS Problem. Pin
Niklas L1-Nov-10 23:35
Niklas L1-Nov-10 23:35 
QuestionHelp me DisConnect Internet use Ras Pin
so0_lanhlung21-Nov-10 8:10
so0_lanhlung21-Nov-10 8:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.