I have created a discrete sensor (i.e. SENSOR_GPIO). But I can’t enable event sending. I found the CFG_SENSOR_EVENT_ENABLE define in one of the sensor source files, so I defined it in the user_defs.h header file, but I still can’t get an event when the gpio sensor state changes?
this works, you just have to specify the assertion/de-assertion event masks in the XML for the GPIO sensor in question. Below is an example XML snippet:
However this basically just relates information from the IPMI standard, which also unfortunately does not explain this very well. I have however updated the GPIO sensor example in the ipmc-project repository accordingly: