Skip to content

Commit

Permalink
add newer begin() to py wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jul 24, 2021
1 parent aaa78a9 commit 20977e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RPi/pyRF24Network/pyRF24Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,14 @@ BOOST_PYTHON_MODULE(RF24Network)
typedef bool (::RF24Network::*available_function_type)();
RF24Network_exposer.def("available", available_function_type(&::RF24Network::available));
}
{ //::RF24Network::begin
{ //::RF24Network::begin (marked as deprecated)
typedef void (::RF24Network::*begin_function_type)(::uint8_t, ::uint16_t);
RF24Network_exposer.def("begin", begin_function_type(&::RF24Network::begin), (bp::arg("_channel"), bp::arg("_node_address")));
}
{ //::RF24Network::begin
typedef void (::RF24Network::*begin_function_type)(::uint16_t);
RF24Network_exposer.def("begin", begin_function_type(&::RF24Network::begin), (bp::arg("_node_address")));
}
{ //::RF24Network::parent
typedef ::uint16_t (::RF24Network::*parent_function_type)() const;
RF24Network_exposer.def("parent", parent_function_type(&::RF24Network::parent));
Expand Down

0 comments on commit 20977e0

Please sign in to comment.