Export to GitHub

as3-arduino-connector - issue #20

Functions not implemented in ANE file on mac


Posted on Mar 12, 2013 by Swift Panda

What steps will reproduce the problem? 1. Add ArduinoConnector.ane to the project and link it. 2. Create new ArduinoConnector. 3. Use of the function isSupported and connect will result in application crash.

use of isSupported results in: The extension context does not have a method with the name isSupported use of connect results in: The extension context does not have a method with the name setupPort

What version of the product are you using? On what operating system? Arduino uno, mac osx 10.8.2

Is there anything I did not implement or initialize which I should have done. Or is the .ane file corrupt for mac use?

Hoppefully this can help you with the product.

Kind regards,

Johan

Comment #1

Posted on Apr 23, 2013 by Happy Bear

the function isSupported() will actually check to see if the .framework file is loaded properly and if the device is actually supported. It is not a static class like most ANEs. You should do a catch/try around it to verify that the proper shared libraries are working and in place.

Comment #2

Posted on May 3, 2013 by Happy Cat

I got the same issue: Im using the last and (1.5). linked it, compile. The method 'getComPorts' answers. But if i try to connect theres an exception. (MAC OSX 10.8.2)

any help on this? Thx Sascha

Using Flex SDK 4.5 Debugger Adapter. [Info] Listening to port 7935. [Info] Connection as server to player via 7935 established. [Loading] Loaded: com.quetwo.Arduino.ArduinoConnector [Loading] Loaded:project.swf [ArduinoConnector] Initalizing ANE... ArduinoConnector -> getComPorts : /dev/tty.usbmodemfa131 ArduinoConnector -> connect Exception fault: ArgumentError: Error #3500: The extension context does not have a method with the name setupPort. at flash.external::ExtensionContext/_call() at flash.external::ExtensionContext/call() at com.quetwo.Arduino::ArduinoConnector/connect() at Project/connect()[ at Function/http://adobe.com/AS3/2006/builtin::apply() at SetIntervalTimer/onTimer() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick()

Status: WontFix

Labels:
Type-Defect Priority-Medium