i think i am missing an important concept. (this all related to my
sensor question...) i know that openIPMI is event driven, but i tried
connection the IMPI, and then iterating through all the entities, using
"ipmi_domain_iterate_mcs", and no entities showed up. But when i use
"ipmi_domain_add_entity_update_handler", they do all show up. and then
i need to do the "..._add_sensor_.." event handler to get all the
sensors. i guess i am confused, because is a mere existence or
discovery an event, not just a change in state?
thank you,
-=- adam grossman
[EMAIL PROTECTED] wrote:
> 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
>
-------------------------------------------------------------------------
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