Merge pull request #1693 from FarmBot/email_verbiage

Verbiage updates
sensor_reading_limits
Rick Carlino 2020-02-12 19:26:53 -06:00 committed by GitHub
commit 6c3e60999c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -171,9 +171,10 @@ class Device < ApplicationRecord
end end
TOO_MANY_CONNECTIONS = TOO_MANY_CONNECTIONS =
"Your device is " + "Your device is reconnecting to the server too often. " +
"reconnecting to the server too often. Please " + "This may be a sign of local network issues. " +
"see https://developer.farm.bot/docs/connectivity-issues" "Please review the documentation provided at " +
"https://software.farm.bot/docs/connecting-farmbot-to-the-internet"
def self.connection_warning(username) def self.connection_warning(username)
device_id = username.split("_").last.to_i || 0 device_id = username.split("_").last.to_i || 0
device = self.find_by(id: device_id) device = self.find_by(id: device_id)