summaryrefslogtreecommitdiff
path: root/FantomModule/FantomModule.h
diff options
context:
space:
mode:
Diffstat (limited to 'FantomModule/FantomModule.h')
-rw-r--r--FantomModule/FantomModule.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/FantomModule/FantomModule.h b/FantomModule/FantomModule.h
index 4266d04..16818be 100644
--- a/FantomModule/FantomModule.h
+++ b/FantomModule/FantomModule.h
@@ -19,6 +19,8 @@
#define FANTOM_USB "USB"
#define FANTOM_BT_TIMEOUTSEC 2
#define FANTOM_NXTNAME_LEN 256
+#define FANTOM_DATA_BUFLEN 256
+#define FANTOM_NXT_PASSKEY "1234"
/* The classes below are exported */
#pragma GCC visibility push(default)
@@ -35,12 +37,16 @@ extern "C" PyObject *fantom_close(PyObject *py_self, PyObject *py_args);
class FantomModule
{
nFANTOM100::tStatus status;
- nFANTOM100::iNXTIterator* nxtIteratorPtr;
nFANTOM100::iNXT* nxtPtr;
+ ViChar pairedResourceName[FANTOM_NXTNAME_LEN];
public:
PyObject *finddevices(PyObject *py_self, PyObject *py_args);
PyObject *socket(PyObject *py_self, PyObject *py_args);
+ PyObject *connect(PyObject *py_self, PyObject *py_args);
+ PyObject *send(PyObject *py_self, PyObject *py_args);
+ PyObject *recv(PyObject *py_self, PyObject *py_args);
+ PyObject *close(PyObject *py_self, PyObject *py_args);
void HelloWorld(const char *);
};