27.02.2023, 13:23
It's not working as i got an 'unautorized' reply. I know you first need to submit each remote control by a popup that appears a the the tv screen.
So for that i just tested with a basic url:
url = 'ws://' .. host .. ':' .. port .. '/api/v2/'
And then i got this response:
Samsung TV websocket 27.02.2023 14:08:28
* table:
["data"]
* table:
["clients"]
* table:
[1]
* table:
["isHost"]
* bool: false
["id"]
* string: f996fa65-4b22-4021-8f30-56df2da9a983
["attributes"]
* table:
["name"]
* userdata: NULL
["deviceName"]
* string: Smart Device
["connectTime"]
* number: 1677503304615
["id"]
* string: f996fa65-4b22-4021-8f30-56df2da9a983
["event"]
* string: ms.channel.connect
The same url http://192.168.126.54:8001/api/v2/ in the webbrowser is giving me more information back:
{
"device": {
"FrameTVSupport": "true",
"GamePadSupport": "true",
"ImeSyncedSupport": "true",
"OS": "Tizen",
"TokenAuthSupport": "true",
"VoiceSupport": "true",
"countryCode": "NL",
"description": "Samsung DTV RCR",
"developerIP": "0.0.0.0",
"developerMode": "0",
"duid": "uuid:ab728320-b477-48f8-9728-dee89aa3b37c",
"firmwareVersion": "Unknown",
"id": "uuid:ab728320-b477-48f8-9728-dee89aa3b37c",
"ip": "192.168.126.54",
"model": "18_KANTM2_FRAME",
"modelName": "UE43LS03N",
"name": "[TV] Samsung Frame Series (43)",
"networkType": "wired",
"resolution": "3840x2160",
"smartHubAgreement": "true",
"type": "Samsung SmartTV",
"udn": "uuid:ab728320-b477-48f8-9728-dee89aa3b37c",
"wifiMac": "64:1c:ae:e3:3b:af"
},
"id": "uuid:ab728320-b477-48f8-9728-dee89aa3b37c",
"isSupport": "{\"DMP_DRM_PLAYREADY\":\"false\",\"DMP_DRM_WIDEVINE\":\"false\",\"DMP_available\":\"true\",\"EDEN_available\":\"true\",\"FrameTVSupport\":\"true\",\"ImeSyncedSupport\":\"true\",\"TokenAuthSupport\":\"true\",\"remote_available\":\"true\",\"remote_fourDirections\":\"true\",\"remote_touchPad\":\"true\",\"remote_voiceControl\":\"true\"}\n",
"name": "[TV] Samsung Frame Series (43)",
"remote": "1.0",
"type": "Samsung SmartTV",
"uri": "http://192.168.126.54:8001/api/v2/",
"version": "2.0.25"
}
So for that i just tested with a basic url:
url = 'ws://' .. host .. ':' .. port .. '/api/v2/'
And then i got this response:
Samsung TV websocket 27.02.2023 14:08:28
* table:
["data"]
* table:
["clients"]
* table:
[1]
* table:
["isHost"]
* bool: false
["id"]
* string: f996fa65-4b22-4021-8f30-56df2da9a983
["attributes"]
* table:
["name"]
* userdata: NULL
["deviceName"]
* string: Smart Device
["connectTime"]
* number: 1677503304615
["id"]
* string: f996fa65-4b22-4021-8f30-56df2da9a983
["event"]
* string: ms.channel.connect
The same url http://192.168.126.54:8001/api/v2/ in the webbrowser is giving me more information back:
{
"device": {
"FrameTVSupport": "true",
"GamePadSupport": "true",
"ImeSyncedSupport": "true",
"OS": "Tizen",
"TokenAuthSupport": "true",
"VoiceSupport": "true",
"countryCode": "NL",
"description": "Samsung DTV RCR",
"developerIP": "0.0.0.0",
"developerMode": "0",
"duid": "uuid:ab728320-b477-48f8-9728-dee89aa3b37c",
"firmwareVersion": "Unknown",
"id": "uuid:ab728320-b477-48f8-9728-dee89aa3b37c",
"ip": "192.168.126.54",
"model": "18_KANTM2_FRAME",
"modelName": "UE43LS03N",
"name": "[TV] Samsung Frame Series (43)",
"networkType": "wired",
"resolution": "3840x2160",
"smartHubAgreement": "true",
"type": "Samsung SmartTV",
"udn": "uuid:ab728320-b477-48f8-9728-dee89aa3b37c",
"wifiMac": "64:1c:ae:e3:3b:af"
},
"id": "uuid:ab728320-b477-48f8-9728-dee89aa3b37c",
"isSupport": "{\"DMP_DRM_PLAYREADY\":\"false\",\"DMP_DRM_WIDEVINE\":\"false\",\"DMP_available\":\"true\",\"EDEN_available\":\"true\",\"FrameTVSupport\":\"true\",\"ImeSyncedSupport\":\"true\",\"TokenAuthSupport\":\"true\",\"remote_available\":\"true\",\"remote_fourDirections\":\"true\",\"remote_touchPad\":\"true\",\"remote_voiceControl\":\"true\"}\n",
"name": "[TV] Samsung Frame Series (43)",
"remote": "1.0",
"type": "Samsung SmartTV",
"uri": "http://192.168.126.54:8001/api/v2/",
"version": "2.0.25"
}