XBee icon indicating copy to clipboard operation
XBee copied to clipboard

GetModuleVidAsync - NullReferenceException

Open tmayrink opened this issue 3 years ago • 0 comments

Hello there.

First of all, thank you all for this amazing code.

My issue here is: Why when i am trying to get the AT Command ID (GetModuleVidAsync), the code always returns NullReferenceException.

BTW, The function SetModuleVidAsync() is working fine.

Could you help me. the code is very simple and is shown below:

        XBeeController controller = new XBeeController();
        await controller.OpenAsync("COM3", 9600);
        var localNode = (XBeePro900HP) await controller.GetNodeAsync();
        var serialNumber = await  localNode.GetSerialNumberAsync();
        await localNode.SetModuleVidAsync(162);
        await localNode.WriteChangesAsync();
        ushort pan_id = await localNode.GetModuleVidAsync();

tmayrink avatar Oct 07 '21 02:10 tmayrink