# Config

### General Config

#### Config Version

This is a unique integer value to indicate the version of the configuration schema. Currently, this is 4.

#### Send Interval

The send interval, or transmission interval, defines the amount of time between uplinks from a Fencyboy device. The default value is 10 minutes.

#### Smart Sleep

This boolean flag enables or disables the smart sleep functionality. See [#smart-sleep](#smart-sleep "mention") for more information.

#### Expected Time Between Impulses

This value configures the expected time between energy impulses on the fence in milliseconds. It is used to guide the control algorithm for smart sleep, and it is also used for the timeout functionality to send an uplink once the fence is turned off. This value defaults to 1000 ms, which is a good value and usually does not need to be changed.

#### Periodic Restart Time

This value configures the time in minutes until the device restarts automatically. By default, this is set to 2 weeks. It can be disabled by setting the value to 0 with a downlink command. This is useful in case you lose the LoRaWAN session for some reason.

#### Voltage Divider Multiplier

The resistor voltage divider on the Fencyboy (the big resistors at the bottom) has a specific ratio that is configured by this value. If one uses resistors with 0% tolerance, this value would be 5130, which is also the default value. However, this value may be adjusted after determining the exact resistor values for maximum accuracy.

### Battery Config

#### Maximum Battery Capacity

The maximum capacity of the battery used by the Fencyboy is hard-coded into the software. This may be 16000 mAh for a SAFT LS33600 battery.

#### Used Battery Capacity

This float value is stored in the EEPROM to track the total energy consumption of the sensor. This value is used to calculate the remaining battery capacity, which is transmitted in the periodic uplinks.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fencyboy.com/technical-documentation/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
