svghmi/svghmi.js
branchsvghmi
changeset 3128 32a4675af377
parent 3126 f45e413a0f40
child 3129 f2709923c82c
equal deleted inserted replaced
3127:d4dfd47f8156 3128:32a4675af377
   241 };
   241 };
   242 
   242 
   243 function send_hmi_value(index, value) {
   243 function send_hmi_value(index, value) {
   244     if(index > last_remote_index){
   244     if(index > last_remote_index){
   245         updates[index] = value;
   245         updates[index] = value;
       
   246 
       
   247         if(persistent_indexes.has(index)){
       
   248             let varname = persistent_indexes.get(index);
       
   249             console.log(varname+"="+value+"; max-age=3153600000");
       
   250             document.cookie = varname+"="+value+"; max-age=3153600000";
       
   251         }
       
   252 
   246         requestHMIAnimation();
   253         requestHMIAnimation();
   247         return;
   254         return;
   248     }
   255     }
   249 
   256 
   250     let iectype = hmitree_types[index];
   257     let iectype = hmitree_types[index];