Additional information

Getting address of a function

ST

TODO: Is this right?

UDINT jsonCallback(UDINT userData, UDINT data) {
    IF userData = 0 AND data = 0 THEN
        RETURN ADR(jsonCallback);
    END_IF

    // Application code
}

pFunction := jsonCallback(0, 0);

C

unsigned long jsonCallback(myData_typ* userData, jsmn_callback_data* data) {
    // Application code
}

pFunction = &jsonCallback;