/**
  * @param string $receivedData
  * @return \Illuminate\Http\Response
  */
 public function handleSystemMessage($receivedData)
 {
     $receivedData = substr($receivedData, 1, strlen($receivedData));
     $messageParts = ["", ""];
     if (strpos($receivedData, '|') !== false) {
         $messageParts = explode('|', $receivedData);
     }
     $device = $messageParts[0];
     $message = $messageParts[1];
     if ($message == 'boot') {
         $this->acsNodeRepository->logBoot($device);
     } elseif ($message == 'heartbeat') {
         $this->acsNodeRepository->logHeartbeat($device);
     }
     //Log::debug("System Message: ".$receivedData);
     return \Response::make(PHP_EOL, 200);
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  *
  * @SWG\Post(
  *     path="/acs/node/boot",
  *     tags={"acs"},
  *     description="Record a bootup/startup of an acs node",
  *     @SWG\Response(response="200", description="Boot recorded"),
  *     security={{"api_key": {}}}
  * )
  */
 public function boot(Request $request)
 {
     $node = $this->ACSNodeRepository->findByAPIKey($request->header('ApiKey'));
     $this->ACSNodeRepository->logBoot($node->device_id);
 }