Relevant header included but fails with "unknown type"
I resolved this issue not long after posting.
The issue was inclusion order though I don’t understand why.
wifi.h ported from the example in my project appears to need to be included in main.c, and not main.h even though main.h is included in main.c. This is not consistent with the example but at least it works..