All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kaloz.pi4j.server.remote.Main.scala Maven / Gradle / Ivy

The newest version!
package org.kaloz.pi4j.server.remote

import akka.actor.ActorSystem
import org.kaloz.pi4j.common.messages.ClientMessages.DigitalPinValueChange.DigitalInputPinValueChangedEvent

object Main extends App with Configuration {

  val system = ActorSystem("pi4j-remoting", config)

  val remoteServerActor = system.actorOf(RemoteServerActor.props, "remoteServerActor")

  def pinStateChangeCallback(pin: Int, state: java.lang.Boolean): Unit = remoteServerActor ! DigitalInputPinValueChangedEvent(pin, state)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy