Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Program Didn't Work After Upgrade OS CR300 to v.11


desnug Feb 27, 2024 04:51 PM

Hi,

I have a problem with my program after upgrading the cr300 os to version 11. when using version 10 the program run well, but after upgraded there were several lines of code that did not work.

please help me to solve this problem. thank you

line 197: Invalid, or out of place expression: datastring = stacode&";"&day.....

 

'send HTTP
If TimeIntoInterval (0,HTTP_interval,Min) Then
  'parsing HTTP
      datastring  = stacode&";"&days&months&years&hours&minutes&seconds&";"&PR_meas_Totalstr&";"&Batt_voltstr&";"&PTempstr
    
      Do
        LoopCount1 += 1 'Increment Loop 1 counter
        URL = HTTP_URL&"/logger/write.php?dat="&datastring
        http_success = HTTPGet (URL,HTTPResponse,"",1000)
      
        If http_success >= 100 Then
            Exit Do                         
        EndIf
        Delay (0,100,mSec)
      Loop Until LoopCount1 = 3

    LoopCount1 = 0
        
    If http_success = 0 Then
      'buat file
      OpenFile1 = FileOpen ("CPU:HTTP_"&days&months&years&hours&minutes&".txt","w",-1)
      FileWrite (OpenFile1,datastring,0)
      CloseStat1 = FileClose (OpenFile1)
    EndIf
EndIf

 


JMC May 19, 2024 10:46 PM

This post is under review.

Log in or register to post/reply in the forum.