You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int main() {
// Initialize OLA logging
ola::InitLogging(ola::OLA_LOG_INFO, ola::OLA_LOG_STDERR);
// Create an OLA streaming client
ola::client::StreamingClientOptions options;
ola::client::StreamingClient ola_client(options);
// Set the target device's IP address
std::string target_ip = "2.0.0.1";
// Create a DMX buffer
ola::DmxBuffer buffer;
for (int i = 0; i < 512; ++i) {
buffer[i] = rand() % 256;
}
// Send the DMX data (ALF) to the target device over Art-Net
if (ola_client.SendDmx(target_ip, 0, buffer)) {
std::cout << "ALF data sent successfully to " << target_ip << std::endl;
} else {
std::cerr << "Failed to send ALF data to " << target_ip << std::endl;
return 1;
}
return 0;
}
The text was updated successfully, but these errors were encountered:
I was wondering if firmware upload of an ALF file was supported using the built in libartnet library.
If it is supported, where might I find the documentation in creating the libartnet code to upload a firmware file?
Here is some of the code that I have as a work in progress:
#include
#include
#include <ola/DmxBuffer.h>
#include <ola/Logging.h>
#include <ola/client/StreamingClient.h>
#include <ola/client/StreamingClientOptions.h>
int main() {
// Initialize OLA logging
ola::InitLogging(ola::OLA_LOG_INFO, ola::OLA_LOG_STDERR);
}
The text was updated successfully, but these errors were encountered: