Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetModuleVidAsync - NullReferenceException #67

Open
tmayrink opened this issue Oct 7, 2021 · 0 comments
Open

GetModuleVidAsync - NullReferenceException #67

tmayrink opened this issue Oct 7, 2021 · 0 comments

Comments

@tmayrink
Copy link

tmayrink commented Oct 7, 2021

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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant