src/Device/Device.php
public function sendToDevice($deviceId, $openId, $content)
    {
        $params = [
            'device_type' => $this->deviceType,
            'device_id' => $deviceId,
            'open_id' => $openId,
            'content' => base64_encode($content),
        ];

        return $this->parseJSON('json', [self::API_TRANS_MSG, $params]);
    }
public function sendToDevice($deviceId, $openId, $content)
    {
        $params = [
            'device_type' => $this->deviceType,
            'device_id' => $deviceId,
            'open_id' => $openId,
            'content' => base64_encode($content),
        ];

        return $this->parseJSON('json', [self::API_TRANS_MSG, $params]);
    }
public function sendToDevice ( $ deviceId , $ openId , $ content ) { $ params = [ 'device_type' => $ this -> deviceType , 'device_id' => $ deviceId , 'open_id' => $ openId , 'content' => base64_encode ( $ content ) , ] ; return $ this -> parseJSON ( 'json' , [ self :: API_TRANS_MSG , $ params ] ) ; }
Send message to device.

@param int $sceneValue

@return \EasyWeChat\Support\Collection
Send message to device .