star-micronics / StarXpand-SDK-Android

StarXpand SDK for Android is a software development kit for supporting application development for Star Micronics devices.
https://star-m.jp/starxpandsdk-oml.html
Other
13 stars 0 forks source link

Error: com.starmicronics.stario10.StarIO10IllegalHostDeviceStateException: Network unavailable #11

Closed Dwikavindra closed 4 months ago

Dwikavindra commented 1 year ago

Description

Error: com.starmicronics.stario10.StarIO10IllegalHostDeviceStateException: Network unavailable. errorCode: NetworkUnavailable. I am trying to search for printers in my current network that I have connected using LAN. However, this is not working using the example provided in this SDK. My device is already connected to the same WiFi Network. Does this error have something to do with the Network or is it something to do with my Android device? Other methods works fined and logs Discovery Finished after 10 seconds. This also occurs for react native star io @gare-bear @bandit-ibayashi

Your device where the bug occurs

Your printer

Your development environment

MacOS Monterey

To Reproduce

Steps to reproduce the behavior:

  1. Clone the repo
  2. Launch on Android Studio
  3. Navigate to Discovery
  4. Press Discovery with LAN checked

Expected behavior

A log with Discovery Finished after 10 seconds

Screenshots

Screen Shot 2023-05-09 at 13 52 01

Additional context

Add any other context about the bug here.

bandit-ibayashi commented 1 year ago

@Dwikavindra From the error information you have provided, it is most likely that the host device is not connected to the network. StarIO10IllegalDeviceStateException is thrown when the status of a host device is invalid, and NetworkUnavailable means the network function of the host device cannot be used.

Just to be sure, could you check again that your Android device is connected to the network, e.g. by web browsing? If you are correctly connected to the network, we would like you to try searching for the printer using our StarPRNT SDK app, followed by isolating this issue.

Tatsuki-Yamamoto2731 commented 4 months ago

I am closing this Issue. If you still have this issue, please reopen it.