It is - but how does that work?
But the function prototype is:
s16 adl_atUnSoSubscribe(ascii *UnSostr, adl_atUnSoHandler_t UnSohdl);
(and it’s not in adl_at.h, as the ADL User Guide says it should be)
So how do I pass an adl_strID_e in an ascii* parameter??
Is this allowed:
adl_atUnSoSubscribe( ADL_STR_WIND, my_handler );
adl_atUnSoSubscribe( (ascii*)ADL_STR_WIND, my_handler );
Or must I do this:
adl_atUnSoSubscribe( adl_strGetResponse(ADL_STR_WIND), my_handler );
(not forgetting to release the memory afterwards, of course…)
Oh, these minor little details that Wavecom love to hide…
Do they think that Open-AT makes life too easy, so they need to leave us these little challenges to figure out??
I kind of guessed it’d be like that - thanks for the confirmation!
Surely, the whole point of an API like ADL is that we shouldn’t have to work this stuff out by trial-and-error - it should be properly documented??!