Hello,
I want to be able to call a lua function on an event happening in the android or ios side of things.
More specifically, I wrote a ble interface for a device and the app. Every time a specific state changes an android / ios function is called, BUT I want to do more complex handling of the data that is sent back, and I want to do this in lua so I don’t need to duplicate code.
I saw some mention of CoronaCards (CoronaView) but have been unable to get that working in my project. So here are my questions:
- is there an easy way / best practice for calling lua functions from android or io and being able to pass some simple data?
- if coronaView events are really the best course of action, how can I include them in the project (which is a standard corona project)
- I noticed that CoronaView requires a context but my ble service is abstracted away from it, is it possible to rectify this?
Thanks in advance!
Alex