I can use SMPL_LINKID_USER_UUD successfully, but ONLY if I join a network normally to begin with.
If I don't do the usual LINK and JOIN functions then the code refuses to work. If I add in LINK and JOIN, but change nothing else then it all works fine if I use SMPL_LINKID_USER_UUD in Rx/Tx for both AP and EP.
I thought the idea of the Unconnected User Datagram was to be able to send a broadcast without being connected? Hence, i can only assume I'm doing something wrong. However, the first few lines of SMPL_SendOpt would seem to suggest the reason why being unconnected is not tolerated:
smplStatus_t SMPL_SendOpt(linkID_t lid, uint8_t *msg, uint8_t len, txOpt_t options)
{
frameInfo_t *pFrameInfo;
connInfo_t *pCInfo = nwk_getConnInfo(lid);
smplStatus_t rc = SMPL_BAD_PARAM;
uint8_t radioState = MRFI_GetRadioState();
uint8_t ackreq = 0;
#if defined(ACCESS_POINT)
uint8_t loc;
#endif
/* we have the connection info for this Link ID. make sure it is valid. */
if (!pCInfo || ((rc=nwk_checkConnInfo(pCInfo, CHK_TX)) != SMPL_SUCCESS))
{
return rc;
}