OWO API
  • 👋Welcome
    • ❔What is a Sensation
    • ⚙️Plugin set up
    • 🎮Configure your project
    • 🔗Connection
    • ⚒️Create Sensations
    • 📲Send Sensations
  • 🎥Unreal Developers
    • 🎮Configure your project
    • 🔗Connection
    • ⚒️Create Sensations
    • 📲Send Sensations
  • 🖥️Tools
    • 💻Sensations Creator
    • 👁️‍🗨️OWO Visualizer
  • 💾Downloads
  • 🚀Quick Setup
Powered by GitBook
On this page
  • 1. Manual Connection
  • 2. Automatic Connection
  • 3. IP Scanning
  • 4. Disconnection
  1. Welcome

Connection

PreviousConfigure your projectNextCreate Sensations

Last updated 1 year ago

For those using Unreal Engine, click .

C++ Extra Step

You need to call the UpdateStatus method in a loop passing the total time since program start up in milliseconds as an argument.

owo->UpdateStatus(timeSinceStartInMilliseconds);

This method is responsible of managing the connection state and the sensations priority queue. As such, we recommend calling this function in the main loop of your project.

1. Manual Connection

This method allows to connect to a fixed IP by passing it as a parameter.

OWO.Connect(singleIp);
owo->Connect({ip});

You can also connect to more than one IP on the same game. Sending the same sensations to multiple devices.

OWO.Connect(ip1, ip2, ip3);
owo->Connect({ip1, ip2, ip3});

Make sure that any IP you use is in the same network.

2. Automatic Connection

This method allows for the connection to be established with any MyOWO app that is in the same network as your project.

OWO.AutoConnect();
owo->AutoConnect();

This may not work if there is a VPN open in the background or if the network does not allow broadcast communication.

We recommend that you allow your user to use the manual connection option.

3. IP Scanning

This method will scan the local network in search of any MyOWO app that is scanning.

OWO.StartScan();
#include <chrono>
owo->Scan(std::clock());

You can readily retrieve the scanned IPs from the DiscoveredApps property.

OWO.DiscoveredApps;
owo->DiscoveredApps();

4. Disconnection

By using this method, you can close the connection with the MyOWO app.

OWO.Disconnect();
owo->Disconnect();

👋
🔗
here