Renier Morales a écrit : > > Could you attach the diff file of your changes to the simulator? It > would help me understand what you are doing. Thank you for your help. Please find in attachment all the modifications i applied on the simulator plugin (very simple modifications, for testing purpose only).
I mainly modified the sim_sensor_func.c file to change the '.ResourceFailed' attribute when the sensor value raise above a specific threshold. The others modifications were applied to restrict to simulator to only one sensor. > You are probably not seeing any change because the code you wrote is > not being executed. If I understood correctly, your code is in > sim_get_sensor_reading() which gets called if the > saHpiSensorReadingGet() api is called. Which hpievents doesn't call. > It only calls saHpiEventGet() to get new events. I use hpitree to collect data from the simulator ; In that case, it pass through the sim_get_sensor_reading() function. I use only hpievents to try to get the event (ie. failure of the ressource). > You should put your code in sim_get_event(). > > Saludos, > > --Renier Thanks a lot, Lionel
patches.tgz
Description: application/compressed-tar
plain_sources.tgz
Description: application/compressed-tar
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Openhpi-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openhpi-devel
