I also meant to show another thing with the code, here it is again with
an addition:
void domainEventHandler(ipmi_domain_t *domain,
ipmi_event_t *event,
void *callbackData) {
int sensorNumber;
ipmi_sensor_id_t sensorID;
sensorID = ipmi_event_get_generating_sensor_id(domain, NULL, event);
// now you can use sensorID with ipmi_sensor_id_reading_get()
// You can also use sensorID to get the sensor number:
sensorNumber = sensorID.sensor_num;
}
--Jen
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer