From 96da3f913a2b6dc561bec9a3d109147230adef83 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Wed, 2 Mar 2011 07:20:35 +0800 Subject: added more template code --- FantomModule/FantomModule.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'FantomModule/FantomModule.h') 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 *); }; -- cgit v1.2.3