pippin wrote: 
> How does a player "enable reconnect"?

from Squeezelite code - the response to "HELO"

Code:
--------------------
    
  static void sendHELO(bool reconnect, const char *fixed_cap, const char 
*var_cap, u8_t mac[6]) {
        const char *base_cap = 
"Model=squeezelite,ModelName=SqueezeLite,AccuratePlayPoints=1,HasDigitalOut=1";
        struct HELO_packet pkt;
  
        memset(&pkt, 0, sizeof(pkt));
        memcpy(&pkt.opcode, "HELO", 4);
        pkt.length = htonl(sizeof(struct HELO_packet) - 8 + strlen(base_cap) + 
strlen(fixed_cap) + strlen(var_cap));
  #ifdef INTERACTIVE
        pkt.deviceid = 8; // squeezeslave
  #else
        pkt.deviceid = 12; // squeezeplay
  #endif
        pkt.revision = 0;
        packn(&pkt.wlan_channellist, reconnect ? 0x4000 : 0x0000);
        packN(&pkt.bytes_received_H, (u64_t)status.stream_bytes >> 32);
        packN(&pkt.bytes_received_L, (u64_t)status.stream_bytes & 0xffffffff);
        memcpy(pkt.mac, mac, 6);
  
        LOG_INFO("mac: %02x:%02x:%02x:%02x:%02x:%02x", pkt.mac[0], pkt.mac[1], 
pkt.mac[2], pkt.mac[3], pkt.mac[4], pkt.mac[5]);
  
        LOG_INFO("cap: %s%s%s", base_cap, fixed_cap, var_cap);
  
        send_packet((u8_t *)&pkt, sizeof(pkt));
        send_packet((u8_t *)base_cap, strlen(base_cap));
        send_packet((u8_t *)fixed_cap, strlen(fixed_cap));
        send_packet((u8_t *)var_cap, strlen(var_cap));
  }
  
--------------------


Again purely from reading code  - if reconnect is 1 - then it is enabled


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=107498

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to