Click here to Skip to main content
15,900,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dll for this endeavor came from GitHub - ela-compil/BACnet: BACnet protocol library for .NET :satellite:[^]
Trying to get BACnet client to start, but having troubles.
Add-Type -Path "C:\myDlls\BACNet\net40\BACnet.dll"

[System.IO.BACnet.BacnetIpUdpProtocolTransport]$BNTudpPT = New-Object System.IO.BACnet.BacnetIpUdpProtocolTransport -ArgumentList 0xBAC0,$false,$false,1472,"192.168.1.12"
#$BNTudpPT | Get-Member
[System.IO.BACnet.BacnetClient]$bacnet_client = New-Object System.IO.BACnet.BacnetClient -ArgumentList $BNTudpPT

$bacnet_client.Start()


What I have tried:

powershell claimed it need an IP so I fed it the IP again
$BNTclient.Start("192.168.1.12")

which didn't seem to work either.
Cannot find an overload for "Start" and the argument count: "1".

Maybe someone out there would have some ideas
Posted
Comments
Richard Deeming 7-May-24 4:41am    
There doesn't seem to be much (if any) documentation, so you're probably going to have to dig into the source code[^] - that shows that the Start method of the BacnetClient class has no parameters.

Rather than randomly changing code based on partial summaries of the error message, actually read the error message - it will usually tell you precisely what the problem is.

If you still don't understand the error, then post the full error message here, or ask on the GitHub project you're using.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900