• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Android and iOS local network problem

Explorer ,
Sep 23, 2014 Sep 23, 2014

Copy link to clipboard

Copied

Hello guys, okay?

I have an Adobe Air application that will run on Android and iOS.

I also have a microcontroller that has a server that serves HTTP requests and returns information about the plate.

When I run my app in the simulator, it works correctly. When I use Android or iOS, it does not work.

The request address is like this: http://192.168.0.50.

When sending a command, it looks like this: http://192.168.0.50/setLightRoom.

In Windows, the event returns HTTPStatusEvent.HTTP_RESPONSE_STATUS

Event.COMPLETE before bringing the information correctly.

The HTTPStatusEvent.HTTP_STATUS event returns 200 OK status.

On Android or iOS, it returns only HTTPStatusEvent.HTTP_STATUS and status 0.

My microcontroller uses the lwIP framework for making and receiving HTTP requests. He works with TCP, UDP, ARP etc. The return of my plate when I make a request is a string of type "ON" or "OFF".

In Windows, the return works. On Android or iOS, there is no return. If I let the compiler microcontroller enabled, and I use the debug, when I make a request for your Android or iOS, it comes up to the plate and do the same steps when the request is made from the simulator.

My doubts are as follows:

Adobe Air does not work on the local network for Android or iOS?

There is something different in the URLLoader request when it is made from Android or iOS?

There is some security setting I need to do to receive HTTP requests on Android or iOS?

Can be a problem from my router, instead of Adobe Air?

Why requests come to the plate, perform the correct action, but Adobe Air does not get the status 200 ok, and no return of the plate?

Thank you!

TOPICS
Development

Views

279

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 23, 2014 Sep 23, 2014

Copy link to clipboard

Copied

LATEST

Anyone?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines