To do this, you can save the sensor's id in the entity update handler 
with ipmi_sensor_convert_to_id().  Then when you need to read the 
sensor, you do a ipmi_sensor_pointer_cb() on the id.  This will lock the 
sensor and then call your callback with the sensor pointer.  Then you 
can get the reading.

-corey

[EMAIL PROTECTED] wrote:
> Hii all,
>
> sample3.c
>
> In setup_done, it does:
> rv = ipmi_domain_add_entity_update_handler(domain, entity_change, domain); 
>
> if any entity in the domain is added/removed/changed,
> then only , i can read the sensor details , instead
> whether i can read sensor directly (with out entity  added/removed/changed,) 
>       
> can i use in the setup_done,as follows
> rv = ipmi_sensor_get_reading(sensor, got_thresh_reading, sdata);        
>
> i want read only temperature sensor for the regular interval of time , how can
> specify the
> the my sensor type below, 
> rv = ipmi_sensor_get_reading(sensor, got_thresh_reading, sdata);     
>
> Thanks, 
> barani
>
>
>
> -------------------------------------------------------------------------
> 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/
> _______________________________________________
> Openipmi-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openipmi-developer
>   


-------------------------------------------------------------------------
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/
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to