0
Отвечен

Error in server when storing data in tag

Wouter van der Post 6 лет назад обновлен Aleksandr Romanov (CTO) 6 лет назад 2

Hi,

In a server project I have some javascript objects, currently about 100 objects with 3 fields each stored in an array.

Example:

var devices = [
  { address: "1.1.2.4",  name: "4",  color: 0x00FF00FF }
  { address: "1.1.2.5",  name: "5",  color: 0x00FF00FF }
   ......
];

I use IR.SetVariable to store this data to a virtual Tag, like so:

IR.SetVariable("Server.Tags.LightsData", JSON.Stringify(devices));


I can fetch this data on the client without a problem, but in the server console window this error is visible:

ERROR   CORE    Tag LightsData string is to big to Web socket. Limit is about 900 bytes for name_len and value_len.


What does this error mean and what can I do to prevent it?

На рассмотрении

Hello.

This limitation of the web socket to the web interface of the iRidium server was displayed not all the value. If you save a value in the feedback, it can be very large and then the web browser may hang. For the stable operation of the web browser and there is a limit.

Сервис поддержки клиентов работает на платформе UserEcho