Espigah / as3-arduino-connector

Automatically exported from code.google.com/p/as3-arduino-connector
0 stars 0 forks source link

Functions not implemented in ANE file on mac #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by jhanev...@rhinofly.nl on 12 Mar 2013 at 4:59

GoogleCodeExporter commented 9 years ago
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.

Original comment by Nicholas...@gmail.com on 23 Apr 2013 at 3:32

GoogleCodeExporter commented 9 years ago
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()

Original comment by s.strohm...@sensory-minds.com on 3 May 2013 at 9:33