components/mcp23s17/MCP23S17.cpp
/**
 * Link C static world to C++ instance
 */
Link C static world to C++ instance
Link C static world to C ++ instance
void MCP23S17::task(void *pvParameter)
{
    if (pvParameter == 0) {
        ESP_LOGE(TAG, "task, invalid pvParameter");
    } else {
        MCP23S17 *pInstance = (MCP23S17*) pvParameter;
        pInstance->run();
    }
}
void MCP23S17 :: task ( void * pvParameter ) { if ( pvParameter == 0 ) { ESP_LOGE ( TAG , " " ) ; } else { MCP23S17 * pInstance = ( MCP23S17 * ) pvParameter ; pInstance -> run ( ) ; } }
Link C static world to C++ instance
Link C static world to C ++ instance
// should be an instance