I have create a mistake in my program. I create a class Controller. In this class, i have create a method Initialize and run like this:
Code: Select all
void DoorController::Initialize()
{
InitializeStack();
if (EthernetIP == 0) GetDHCPAddress();
OSChangePrio(MAIN_PRIO);
EnableAutoUpdate();
StartHTTP();
EnableTaskMonitor();
PtrToObjectGlobalWebServerHandler = &WebServerHandler_Object;
MyPostHandlerRegister(WebServerHandler::MyDoPostWrapper);
}
void DoorController::Run()
{
while (1)
{
OSTimeDly(20);
}
}
Code: Select all
void UserMain(void * pd)
{
// DoorController DoorControllerMain;
// DoorControllerMain.Run();
}
Anybody have an idea for correct my problem?
Thank you