Posted 21 January 2014 - 06:27 PM
Hi, I need to know if its possible for a program to pass variables to an API that the program is using.
For instance, in my API I want to use 'modem' that was declared in my program:
For instance, in my API I want to use 'modem' that was declared in my program:
modem = peripheral.wrap(settings.modemside)
but my API doesn't know what 'modem' is, so I can't use modem.transmit() inside my API.