I have tried many third-party codes, but I am unable to get the device type like a router, laptop, or mobile for the devices connected to a wifi network. Can you please help me with this?
Getting device type in a Wifi network- Swift/Objective-c
Hi, there can be various reasons for this try some of the following ways hope this will help you. try to open different browsers , Can you connect if you move your device closer to your router? try to restart your device. This is a standard troubleshooting solution and could be the fix you need to get connected to Wi-Fi again. Your next step is to check your network adapter. Sometimes connection issues arise because your computer’s network adapter might not be enabled network adapter could suddenly stop working if it overheats. To fix hardware issues, you can take your device to a repair store and see if they can assist in replacing any hardware. Depending on the age of your computer or other device, you may need to purchase a newer version of it. thanku
Hi Sonalli. I need Swift code to achieve this.
I am unable to get the device type like a router, laptop, or mobile for the devices connected to a wifi network
There isn’t a standard mechanism to identify the type of STA based on its network presence. Some STAs advertise their type in some way, but in most case your only option is to apply a bunch of heuristics.
What is your end goal here? What are you going to do differently based on the type of the STA?
ps I’m using terms from Wi-Fi Fundamentals.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
My goal is to list the devices connected to my Wifi network. I am creating an attendance management system. For that, I need the device type
I’m sorry but this is still too vague for me to give you a meaningful answer. Please elaborate.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Hi Man, You want get device type that you should see Safari API. Maybe Network API is difficult.