Welcome, Guest
Username: Password: Remember me

TOPIC: EasyIoT Server Win v0.9 - Cron Bug

EasyIoT Server Win v0.9 - Cron Bug 1 year 9 months ago #2533

  • timpur
  • timpur's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
Ive noticed that my Cron is not working in my automation programs. None of the "Run()" Functions execute. Testing "* * * * *" (Every Min) and nothing happens.

Wondering if anyone else has his problem?
The administrator has disabled public write access.

EasyIoT Server Win v0.9 - Cron Bug 1 year 9 months ago #2535

  • timpur
  • timpur's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
V0.8 Works fine but not V0.9

Is this just me or anyone else having this problem?
The administrator has disabled public write access.

EasyIoT Server Win v0.9 - Cron Bug 1 year 9 months ago #2536

  • timpur
  • timpur's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
So ive done some debugging and found the problem in the windows IOT server exe code


Within AutomationEngine - CheckScheduledEvents() there is a error.

Looks to me from 0.8 to 0.9 there was a restructure of this function which moved this logic :

if (programContainer.Enabled && programContainer.CodeOk && (!string.IsNullOrEmpty(programContainer.CronExpression) && programContainer.LastOccurrence != strB))
{
.......
}


in 0.9 the move of this code causes a logic error since programContainer.LastOccurrence has already been set to strB in the above code thus programContainer.LastOccurrence will always == strB and can never not be != to strB

Not sure what EasyIoT wants to do to fix this but the error is there and it means that the automation programs wont run when meant to.

Not sure if this is just a windows version error ?
The administrator has disabled public write access.

EasyIoT Server Win v0.9 - Cron Bug 1 year 9 months ago #2541

  • EasyIoT
  • EasyIoT's Avatar
  • Offline
  • Administrator
  • Posts: 833
  • Thank you received: 258
  • Karma: 24
I've tested with latest win version on WIN7 and it works. Maybe you need to recompile program - go in program editor and click update button.
The administrator has disabled public write access.

EasyIoT Server Win v0.9 - Cron Bug 1 year 9 months ago #2542

  • timpur
  • timpur's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
Should of mentioned that im using the code from the windows zip from the download page ?

Im suing the EasyIoT server from the download page, windows .zip
for me that doesnt work....
Last Edit: 1 year 9 months ago by timpur.
The administrator has disabled public write access.

EasyIoT Server Win v0.9 - Cron Bug 1 year 9 months ago #2543

  • timpur
  • timpur's Avatar
  • Offline
  • New Member
  • Posts: 7
  • Karma: 0
Ive done that many many times and it executed once and only once.

so after recompiling the automation program or disable/enable
the setup() runs fine and the Run() only runs once ....
The administrator has disabled public write access.
Time to create page: 0.125 seconds
Powered by Kunena Forum