The backend will have access to binaries for each architecture.
UUID of the sensor needs to be baked into binary. Use the following snippet to replace a placeholder sensor UUID in the binary:
// IndexReplace uses the optimized offset finding
func IndexReplace(b, old, new []byte) []byte {
i := bytes.Index(b, old)
if i == -1 {
return b
}
copy(b[i:], new)
return b
}
The backend will have access to binaries for each architecture. UUID of the sensor needs to be baked into binary. Use the following snippet to replace a placeholder sensor UUID in the binary: