Permalink
Browse files

changed ip arg to string

  • Loading branch information...
1 parent 9fdc860 commit 9da483b2dbd95e9d6128884c45f9a8e2bdffb2b8 rene committed Jul 10, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/ofxLibArtnet.cpp
  2. +2 −2 src/ofxLibArtnet.h
View
@@ -15,13 +15,13 @@ void Node::addUniverses(int _num) {
}
-void Node::setup(char *_ip_addr, bool _sendRaw, uint8_t _subnet_addr)
+void Node::setup(string _ip_addr, bool _sendRaw, uint8_t _subnet_addr)
{
ip_addr = _ip_addr;
subnet_addr = _subnet_addr;
sendRaw = _sendRaw;
- artnetNode = artnet_new(ip_addr, 1);
+ artnetNode = artnet_new(ip_addr.c_str(), 0);//int = verbose
//@todo: allow for multiple nodes then artnet_join(artnetNode1, artnetNodeN)
if (!artnetNode) {
View
@@ -44,7 +44,7 @@ class Node
public:
void addUniverses(int _num);
- void setup(char *_ip_addr, bool _sendRaw = false, uint8_t _subnet_addr = 0);
+ void setup(string _ip_addr, bool _sendRaw = false, uint8_t _subnet_addr = 0);
void updateData(unsigned char * _data, int _length);
void updateDataByIndex(int _index, unsigned char * _data, int _length);
@@ -70,7 +70,7 @@ class Node
private:
artnet_node artnetNode;
- char *ip_addr;
+ string ip_addr;
uint8_t subnet_addr;
bool sendRaw;
vector<Universe> unis;

0 comments on commit 9da483b

Please sign in to comment.