question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Net able to get location from fullDevice

See original GitHub issue

I have added the simple search example to a project and when run it devices are found.

But I am not able to access location in fullDevice in order to get to the IP address.

This line works

Console.WriteLine(fullDevice.FriendlyName);

but intellisense will not give me location so I can get to host

Console.WriteLine(fullDevice.Location);

but in debug I can see Location and within that I can see Host.

I am trying to build a list of Heos devices with their IP addresses.

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
winkmichaelcommented, Feb 18, 2019

Thank you very much for this Yortw, this has me setup just perfect. Awesome lib you got. Thanks again.

0reactions
Yortwcommented, Mar 21, 2021

@SiyerBOBO You probably should create a new issue for this. However, in short, what you need to do is create an SsdpRootDevice, fill in the properties and then add it to an instance of SsdpDevicePublisher. The SsdpRootDevice includes a property for your to specify the ‘base address’ which is the path your HTTP server uses to serve the XML document, or you can call methods on the SsdpDevicePublisher instance to create the XML for you if yor prefer.

When you create the SsdpPublisher instance you can pass in an ip address and that will be the address the publisher responds to search requests on (and broadcasts notifications). Make sure that address matches whatever is in the XML your serve.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Geolocation - .NET MAUI
Use the GetLocationAsync method to query the device for the current location. You can configure the accuracy and timeout of the query. It's...
Read more >
GeoCoordinateWatcher Class (System.Device.Location)
Supplies location data that is based on latitude and longitude coordinates. ... The following program shows how to receive continuous location updates by ......
Read more >
Get the full name of a waveIn device
NET : Dim wain = New WaveIn() Dim DeviceInfoI As WaveInCapabilities Dim nomedevice ... Using NAudio, i use this code to get full...
Read more >
How to get current exact location in android without internet ...
I want to get current exact location coordinates in android. I am able to get the location if mobile is connected to Wifi...
Read more >
Get the last known location
This lesson shows you how to make a single request for the location of a device using the getLastLocation() method in the fused...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found