Skip to content

Commit 8c44c65

Browse files
committed
Update OSC Receive test in networking test kit
1 parent ccaeff3 commit 8c44c65

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Networking-Test-Kit/OSC/osc_receive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def close_file(*args):
5656
# Set up necessary parameters from command line
5757
dispatcher = dispatcher.Dispatcher()
5858
if args.option=="print":
59-
dispatcher.map("/openbci", print_message)
59+
dispatcher.map(args.address, print_message)
6060
signal.signal(signal.SIGINT, exit_print)
6161

6262
elif args.option=="record":
@@ -68,7 +68,7 @@ def close_file(*args):
6868
textfile.write("time,address,messages\n")
6969
textfile.write("-------------------------\n")
7070
print("Recording to %s" % filename)
71-
dispatcher.map("/openbci", record_to_file)
71+
dispatcher.map(args.address, record_to_file)
7272
signal.signal(signal.SIGINT, close_file)
7373

7474
# Display server attributes

OpenBCI_GUI/W_Networking.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,9 +1469,9 @@ class Stream extends Thread {
14691469
// Bin 10 == 10Hz frequency range
14701470
if (this.protocol.equals("OSC")) {
14711471
for (int i = 0; i < numExgChannels; i++) {
1472-
msg.clearArguments();
1473-
msg.setAddrPattern(baseOscAddress + "/fft/ch" + i);
14741472
for (int j = 0; j < 125; j++) {
1473+
msg.clearArguments();
1474+
msg.setAddrPattern(baseOscAddress + "/fft/ch" + i + "/bin" + j);
14751475
msg.add(fftBuff[i].getBand(j));
14761476
}
14771477
try {

0 commit comments

Comments
 (0)