destAddr.addrMode = (afAddrMode_t)Addr16Bit;
destAddr.addr.shortAddr =addr;
destAddr.endPoint = (int)(buf[0]);//这样写是不能发出去的。换成下面确定数值的可以发出去。
无论是byte buf[0]还是没有加强制转换。
destAddr.endPoint = 13; // buf[0]==15的
接受端的端口号是13.难道对端口号的设置是常数吗?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
destAddr.addrMode = (afAddrMode_t)Addr16Bit;
destAddr.addr.shortAddr =addr;
destAddr.endPoint = (int)(buf[0]);//这样写是不能发出去的。换成下面确定数值的可以发出去。
无论是byte buf[0]还是没有加强制转换。
destAddr.endPoint = 13; // buf[0]==15的
接受端的端口号是13.难道对端口号的设置是常数吗?