func (b *Beacon) Subscribe(filter string) error {
	cmd := C.CString("SUBSCRIBE")
	defer C.free(unsafe.Pointer(cmd))

	cFilter := C.CString(filter)
	defer C.free(unsafe.Pointer(cFilter))

	rc := C.zstr_sendm(unsafe.Pointer(b.zactorT), cmd)
	if rc == -1 {
		return ErrActorCmd
	}

	rc = C.zstr_send(unsafe.Pointer(b.zactorT), cFilter)
	if rc == -1 {
		return ErrActorCmd
	}

	return nil
}
// Subscribe subscribes to beacons matching the filter
Subscribe subscribes to beacons matching the filter
// Subscribe subscribes to beacons matching the filter
func (b *Beacon) Subscribe(filter string) error {
	cmd := C.CString("SUBSCRIBE")
	defer C.free(unsafe.Pointer(cmd))
	cFilter := C.CString(filter)
	defer C.free(unsafe.Pointer(cFilter))
	rc := C.zstr_sendm(unsafe.Pointer(b.zactorT), cmd)
	if rc == -1 {
		return ErrActorCmd
	}
	rc = C.zstr_send(unsafe.Pointer(b.zactorT), cFilter)
	if rc == -1 {
		return ErrActorCmd
	}
	return nil
}
func ( b * Beacon ) Subscribe ( filter string ) error { cmd := C . CString ( " " ) defer C . free ( unsafe . Pointer ( cmd ) ) cFilter := C . CString ( filter ) defer C . free ( unsafe . Pointer ( cFilter ) ) rc := C . zstr_sendm ( unsafe . Pointer ( b . zactorT ) , cmd ) if rc == - 1 { return ErrActorCmd } rc = C . zstr_send ( unsafe . Pointer ( b . zactorT ) , cFilter ) if rc == - 1 { return ErrActorCmd } return nil }
Subscribe subscribes to beacons matching the filter
Subscribe subscribes to beacons matching the filter